Skip to content

Conversation

Sipioteo
Copy link

@Sipioteo Sipioteo commented Feb 6, 2022

I just added some features that i was needing for my project.
Thank you for this repo!

luminos and others added 5 commits February 6, 2022 12:35
* Added multiple topic news
* Added possibility to sort the news by the publish date
* Added possibility to get the news published within the last X hours
* Added multiple topic news
* Added possibility to sort the news by the publish date
* Added possibility to get the news published within the last X hours
Generic enhancement for this repo. I needed these functions.
* Added multiple geolocation news
* Added multiple topic news
* Added possibility to sort the news by the publish date
* Added possibility to get the news published within the last X hours
* Added multiple topic news
* Added possibility to sort the news by the publish date
* Added possibility to get the news published within the last X hours
@adgsenpai
Copy link

LGTM!

@stadiello
Copy link
Collaborator

Hello,

Thank you for your contribution to the pygooglenews package! I’ve recently taken over the maintenance of this project and I really appreciate your efforts in improving it.

I’d be happy to merge this pull request, but I noticed an issue that needs to be addressed before proceeding. The new features rely on published_parsed to sort articles by date. However, if this key is missing in some entries from feedparser, it could cause errors. For example, mktime(p['published_parsed']) may raise an exception if p['published_parsed'] is None.

Could you please add a check to handle cases where published_parsed is not present? Let me know if you need any help with this.

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

Successfully merging this pull request may close these issues.

3 participants