-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 Client Error: Forbidden for url #57
Comments
Thanks! This should have already been fixed in the latest version (5.2.2). Does that version not work for you? |
I'm sorry, I was still on 5.0.2. My fault. I just updated to the latest version (5.2.2) and it works perfectly. Thanks for creating and keeping this project up to date! I really appreciate all the time and work you put in. Let me know if you ever need any help. |
I'm having this error with billboard 5.3.0 and Python 3.6 |
I was able to grab the |
A 403 Client Error: Forbidden for url is thrown in billboard.py.
Error occurs at self.fetchEntries() at line 152.
Error occurs at line 199 inside the fetchEntries function.
line 199: req = requests.get(url, timeout=self._timeout)
This error most likely occurs because billboard added some kind of new scraping safeguard.
The way I got around this was by changing the Headers User Agent to this:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36'
It's the latest User Agent for Chrome. It should solve any problems having to do with a 403 Client Error: Forbidden for url.
The text was updated successfully, but these errors were encountered: