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

[site] bbc.co.uk #658

Open
kdenaeem opened this issue Feb 5, 2025 · 0 comments
Open

[site] bbc.co.uk #658

kdenaeem opened this issue Feb 5, 2025 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@kdenaeem
Copy link

kdenaeem commented Feb 5, 2025

I am trying to scrape bbc.co.uk/news/world, I'm hoping to scrape 20/30 of the articles on the front page of this site

bbc_papers = newspaper.build("https://www.bbc.co.uk/news/world", number_threads=3)

article_urls = [article.url for article in bbc_papers.articles]
print(article_urls[10])

This always says list is out of index or return empty [], I'm guessing this is because the request was blocked.
Does anyone know why it wont return article_urls ?

@kdenaeem kdenaeem added the help wanted Extra attention is needed label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant