Forums

scraping gives no output

Hi, for some reason when I run my scraper in the "always on task" or from my file browser I can not get any results. When I run it on my local PC it works as intended.

Here I share the code with you: https://www.pythonanywhere.com/user/exec85/shares/10476452fd194c0e830d9fd5d3523f26/

I want to generate 3 files including player data that I scrape from a URL. So I created 3 for loops to scrape and fill 3 JSON files. Sometimes, the first file (in this case data_xbox.JSON) gets filled as it should, but then the other files are empty.

Am I missing something?

Do you get any errors from your traceback.print_exc()?

No all is running fine on console log

Check the content of the responses you're getting back. It is likely that you are trying to access sites that are not on the whitelist