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

Ordering of html blocks changing #154

Open
adisomani opened this issue Nov 8, 2014 · 0 comments
Open

Ordering of html blocks changing #154

adisomani opened this issue Nov 8, 2014 · 0 comments

Comments

@adisomani
Copy link

For some urls, html text that appears later, comes before.

Example:
url = "http://timesofindia.indiatimes.com/city/delhi/Garbage-spread-on-street-purposely-before-Delhi-BJP-chief-and-Shazia-Ilmi-participate-in-Clean-India-campaign/articleshow/45058960.cms?"

article = goose.extract(url=url)
article.cleaned_text[:300]
"The stupidity of Upadhya has belittled what was a great initiative by @narendramodi : this is how these local blokes mess things up! \u2014 SUHEL SETH (@suhelseth) November 6, 2014\n\nNEW DELHI: Prime Minister Narendra Modi's much-hyped 'Swachh Bharat Abhiyan' has been reduced to a sham by his own party le"

This twitter text appears much lower down the page. Similarly, when you look at the raw HTML text, this twitter text appears after the main article text.

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