2.5.0 • Published 3 days ago

odds-portal-scraper v2.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 days ago

Odds-portal CLI

A CLI tool for scraping soccer odds from the odds portal site.

Installation

you can install the odds-portal package globally using npm or yarn:

npm install -g odds-portal-scraper

yarn global add odds-portal-scraper

Usage

To use odds-portal, run the odds-portal command followed by the subcommand you want to use.

Available Commands

historic

historic <leagueName> <startYear> <endYear>

Scrape historic odds data for a given soccer league between two years.

  • : The name of the soccer league to scrape odds for. Use the leagues command to see available league names.
  • : The start year of the time range to scrape odds for (e.g. 2019).
  • : The end year of the time range to scrape odds for (e.g. 2021).
  • --odds-format : the desired odds format
  • --local : The directory to output the scraped odds data as a JSON file.
  • --s3 : The bucketName to output the scraped odds data as a JSON file.

Example usage:

odds-portal historic premier-league 2019 2021 --local ./data --odds-format eu

This will scrape historic odds data for the English Premier League between 2019 and 2021.

next-matches

next-matches <leagueName>

Scrape next matches odds data for a given soccer league between two years.

  • : The name of the soccer league to scrape odds for. Use the leagues command to see available league names.
  • --odds-format : the desired odds format
  • --local : The directory to output the scraped odds data as a JSON file.
  • --s3 : The bucketName to output the scraped odds data as a JSON file.

Example usage:

odds-portal next-matches --output-dir ./data --odds-format eu

This will scrape historic odds data for the English Premier League between 2019 and 2021.

soccer-leagues

odds-portal soccer-leagues

Displays a list of available soccer leagues that odds can be scraped for.

Example usage:

odds-portal soccer-leagues

odds-format

odds-portal odds-format

Displays a list of available odds-format.

Example usage:

odds-portal odds-format

Contributing

If you find any bugs or issues with odds-portal, please open an issue on the GitHub repository. Pull requests are also welcome!

Licence

This project is licensed under the MIT License.

2.5.0

3 days ago

2.4.1

2 months ago

2.4.2

2 months ago

2.4.0

2 months ago

2.3.5

2 months ago

2.3.4

2 months ago

2.3.3

2 months ago

2.3.2

6 months ago

1.0.3

10 months ago

2.3.0

9 months ago

2.2.1

9 months ago

2.2.0

9 months ago

2.3.1

8 months ago

2.2.2

9 months ago

2.1.0

9 months ago

2.0.0

10 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago