You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: