joenano / rpscrape

Scrape horse racing results data and racecards.
143 stars 59 forks source link

rpscrape not pulling GB jumps data between given dates #135

Closed WaspStar closed 1 year ago

WaspStar commented 1 year ago

Hi, I'm using the following command to pull all of the date for GB Jumps results between 08-09-2023 and 16-09-2023

rpscrape.py -d 2023/09/08-2023/09/16 -r gb -t jumps

Unfortunately, only the following data is being returned (file attached):

Path: \rpscrape\data\dates\gb\jumps Filename: 2023_09_08-2023_09_16.csv 2023_09_08-2023_09_16.csv

Could you please have a look to see why no data is being return?

Many thanks!

WaspStar commented 1 year ago

Update: I've tried tonight to download a year's worth of jumps GB data, it hasn't pulled anything down. I've also tried just for a single day at that has failed too, so something seems to be broken.

Thanks!

rmwesley99 commented 1 year ago

I've just tried downloading the same data requested in your first post and it seems to work fine for me. It downloads a csv with 255 data rows (plus header). Therefore, you need to try and figure out what is going wrong at your end, e.g.

1) Did the rpscrape install go OK without any errors?

2) Did you install the supporting libraries (Requests, tomli, orjson, AIOHTTP and LXML)?

It isn't clear if you are trying to run the script from the command line or interactively, since the command you have pasted above looks to be a mix of the two.

3) Are you trying to run the script from the command line? Try the following command instead of what you pasted above: $ cd rpscrape/scripts $ python3 rpscrape.py -d 2023/09/08-2023/09/16 -r gb -t jumps i.e. explicitly use python3 to run the .py script & also ensure the python3 executable is on your $PATH

4) Are you trying to run the script interactively? If so, try... $ cd rpscrape/scripts $ python3 rpscrape.py [rpscrape]> -d 2023/09/08-2023/09/16 gb If you read the instructions, it says that in interactive mode "To scrape by date or date range, use the -d flag followed by the date/date range and the region. Scraping individual courses in this manner is not included:". I assume that scraping "just" jumps in this manner is not included also.

WaspStar commented 1 year ago

Thank you for getting back to me.

I've re-installed to a new directory and everything is working again, phew!

Many thanks!