Skip to content
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: https://www.billboard.com/charts/radio-songs #97

Open
keyreel opened this issue Oct 9, 2024 · 0 comments

Comments

@keyreel
Copy link

keyreel commented Oct 9, 2024

The code:

import billboard
name = 'radio-songs'
chart = billboard.ChartData(name, date=None, year=None, fetch=True, timeout=25)
print(chart.title)

raise

Traceback (most recent call last):
  File "test2.py", line 4, in <module>
    chart = billboard.ChartData(name, date=None, year=None, fetch=True, timeout=25)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv\Lib\site-packages\billboard.py", line 192, in __init__
    self.fetchEntries()
  File ".venv\Lib\site-packages\billboard.py", line 501, in fetchEntries
    req.raise_for_status()
  File ".venv\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.billboard.com/charts/radio-songs

Process finished with exit code 1

Python 3.12
Billboard.py 7.1.0
Requests 2.32.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant