econchick / econchick/new-coder

Giant Bomb Response 403

Open
#206 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
591
Forks
378
PR merge metrics
No merged PRs in 30d

Description

I'm running the API example, api.py, from the repository, using Python 3 on a Windows 10 machine with minor software mods. The response from Giant Bomb was quite enlightening when I viewed it in the browser:

> Wordpress RSS Reader, Anonymous Bot or Scraper Blocked
>
> Sorry we do not allow WordPress plugins to scrape our site. They tend to be used maliciously to steal our content. We do not allow scraping of any kind. You can load our RSS feeds using any other reader but you may not download our content. Click here more information on our feeds
>
> Or you're running a bot that does not provide a unique user agent. Please provide a UNIQUE user agent that describes you. Do not use a default user agent like "PHP", "Java", "Ruby", "wget", "curl" etc. You MUST provide a UNIQUE user agent. ...and for God's sake don't impersonate another bot like Google Bot that will for sure get you permanently banned.
>
> Or.... maybe you're running an LG Podcast player written by a 10 year old. Either way, Please stop doing that.

The request headers were:

> {'User-Agent': 'python-requests/2.10.0', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'Accept': '_/_'}

I verified that my API key works okay by manually copying the request url into the browser.

Any suggestions how I might provide a unique user agent to make the app work?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.