joenano / rpscrape

Scrape horse racing results data and racecards.
140 stars 57 forks source link

Invalid Region Code #81

Closed aliendough closed 2 years ago

aliendough commented 2 years ago

Hi, When I try to get data for a course it doesn't work for me....

[rpscrape]> -d 2021/10/23 -c 36 -y 2021 -t flat
Invalid Region code. 

Examples:
        2020/01/19 gb
        2021/07/11 ire

Also, I am only getting a few races on the csv file when I type this command...

[rpscrape]> -d 2021/10/23 gb
Finished scraping.
2021_10_23.csv saved in rpscrape/data/dates/gb/all

Is there an issue, or is this user error?

Many thanks.

joenano commented 2 years ago

https://github.com/4A47/rpscrape#usage

aliendough commented 2 years ago

Hi, that's still not working.

I'm still not getting all the races when I use this:

[rpscrape]> ./racecards.py today

Also, I'm using an example from the usage link you gave me:

[rpscrape]> -r gb -y 2019 -t flat
Error: Too many arguments.

2021_10_23.csv

joenano commented 2 years ago

you are using command line arguments(flags like -y) inside the program, and racecards.py is a separate script

take some time to read the instructions properly and look at the examples

a

after you run ./rpscrape and the prompt loads

gb 2019 flat

is correct for the example youve posted

the same request can be run from the command line without loading the prompt

./rpscrape.py -r gb -y 2019 -t flat

Its two different ways of doing the same thing, you are mixing them up