vaastav / Fantasy-Premier-League

Creates a .csv file of all players in the English Player League with their respective team and total fantasy points
Other
1.42k stars 799 forks source link

teams_scraper returns 503 #74

Open prosilico opened 3 years ago

prosilico commented 3 years ago

Hello,

I have been using teams_scraper.py successfully but am now getting the following error:

python ./teams_scraper.py 1245518
Traceback (most recent call last):
  File "./teams_scraper.py", line 29, in <module>
    main()
  File "./teams_scraper.py", line 26, in main
    store_data(team_id, output_folder)
  File "./teams_scraper.py", line 7, in store_data
    summary = get_entry_data(team_id)
  File "C:\repos\Fantasy-Premier-League\getters.py", line 49, in get_entry_data
    raise Exception("Response was code " + str(response.status_code))
Exception: Response was code 503

Running on Anaconda3, Windows 10

vaastav commented 3 years ago

This happens when the game is updating. If you tried it when the game was updating then this is the expected behaviour.