Giter Site home page Giter Site logo

fff-clubs's Introduction

FFF Clubs Scraper

Get all FFF Clubs ez

Tech Stack

Node: 20.10.0

NPM: 10.2.5

Installation

  git clone [email protected]:vassilidev/fff-clubs.git
  
  cp .env.exemple .env
  
  npm i
  
  node makePostalCodeFile.js
  
  node index.js

How it works ?

  1. The script will download the government datasheet in order to obtain all the cities / postal codes in France.
  2. makePostalCodeFile.js will send each postal code to the FFF API in order to obtain the available cities and their metadata and create a dedicated file
  3. With this freshly generated file, the script will send a call per city to the FFF club API in order to obtain the clubs by coordinates and create a single file with their metadata.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

POSTAL_CODE_DATASET_URL (https://www.data.gouv.fr/fr/datasets/r/5ed9b092-a25d-49e7-bdae-0152797c7577)

POSTAL_CODE_DATASET_FILENAME (postalCode.csv)

POSTAL_CODE_DATASET_OUTPUT (postalCodeFull.json)

FFF_BASE_URL (https://www.fff.fr/api/)

FFF_FIND_CITIES_PATH (find-cities/)

FFF_FIND_CLUB_PATH (find-club)

Authors

fff-clubs's People

Contributors

vassilidev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.