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

not working for gnews.org #968

Open
Jooey233 opened this issue Apr 3, 2023 · 0 comments
Open

not working for gnews.org #968

Jooey233 opened this issue Apr 3, 2023 · 0 comments

Comments

@Jooey233
Copy link

Jooey233 commented Apr 3, 2023

https://gnews.org/articles/1068907
used article.text for this page, and no text got.
and build for gnews is not working too.

import newspaper

gnews = newspaper.build('https://gnews.org/', language='zh')

article = gnews.articles[0]
article.download()
article.parse()
print(article.text)

it will give u a 'index out of range'

and this:

import newspaper

page = newspaper.Article('https://gnews.org/articles/1065912')
page.download()
page.parse()
print(page.title)
print(page.text)

Only part of the title is caught, the text is not working at all

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