Skip to content

SteamDB.py no longer works due to CloudFlare protection #95

@MikeRixWolfe

Description

@MikeRixWolfe

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions