Iceloof / GoogleNews

Script for GoogleNews
https://pypi.org/project/GoogleNews/
MIT License
314 stars 88 forks source link

Update __init__.py #137

Closed Flopsky closed 4 months ago

Flopsky commented 6 months ago

Added the remove_more_from_title utility function, to remove the word "More" wich is useless in the title of the article.

From : 'The VergeMoreThe Epic question: how Google lost when Apple won'

To : 'The Verge: The Epic question: how Google lost when Apple won'

xchinox commented 6 months ago

FWIW I solved this by changingtitle=article.findAll('div')[2].text to title=article.findAll('div')[2].find('a').text in line 285

Flopsky commented 6 months ago

Yes but the title of the journal can be important in the title.