https://github.com/pirony/ffgscrap
Scrap le site de la FFG (Fédération Française de Golf) pour en extraire les résultats des compétitions de golf amateur (par clubs)
https://github.com/pirony/ffgscrap
js pupeteer stream-api
Last synced: 6 months ago
JSON representation
Scrap le site de la FFG (Fédération Française de Golf) pour en extraire les résultats des compétitions de golf amateur (par clubs)
- Host: GitHub
- URL: https://github.com/pirony/ffgscrap
- Owner: pirony
- Created: 2020-03-17T11:46:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-19T13:19:09.000Z (almost 6 years ago)
- Last Synced: 2025-08-01T20:55:37.347Z (7 months ago)
- Topics: js, pupeteer, stream-api
- Language: JavaScript
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Scrap FFG
## Installation
With docker
```bash
git clone git@github.com:pirony/ffgscrap.git ffgscrap
cd ffgscrap
echo 'APP_PORT=3001' >.env # replace 3001 with the port of your choice
docker-compose up
```
Without docker
```bash
git clone git@github.com:pirony/ffgscrap.git directory
cd directory/app
yarn
yarn start
```
## Usage
Visiting [http://localhost:3001/scrap/${club_results_page_id}](http://localhost:3001/scrap/83502d985595aba6d37f5ac0d35c42f0) will return a node stream whose chunks are [ndjson](https://www.npmjs.com/package/ndjson) encoded competitions results.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)