Could not get user info: HTTP Error 503: Service Temporarily Unavailable
CloudFlare protection is preventing steamdb.py from retrieving information with requests.
Suggestion:
import cfscrape
scraper = cfscrape.create_scraper()
request = scraper.get(CALC_URL, params=params)
soup = bs4.BeautifulSoup(request.content)
Advantages:
- Easy
- Confirmed to fix the issue (by myself)
Disadvantages:
- Large dependencies (PyExecJS and Node.js)
- May not work forever (see author's notes on repo)
CloudFlare protection is preventing steamdb.py from retrieving information with requests.
Suggestion:
Advantages:
Disadvantages: