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

Newsgetter class #4

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Rahul20037237
Copy link

@Rahul20037237 Rahul20037237 commented Oct 8, 2024

Hi, the code requires an API key, and I used the Dow Jones API key, which is not free. Perhaps you could modify it to use the 5Paisa or Fyers API, as these are free of cost

@Mohpann
Copy link
Collaborator

Mohpann commented Oct 9, 2024

I see. I didn't know that. Hopefully you didn't pay out of pocket for that. Zaydo123 mentioned using RSS readers to get XML data. We would have to find one to subscribe to. Preferably something that works well with a CLI. I heard Newsboat is pretty good. Zaydo123 also sent this link (https://about.fb.com/wp-content/uploads/2016/05/rss-urls-1.pdf) containing links to RSS feeds.

Let's scrap the Dow Jones API idea. Good work so far, but we shouldn't have to pay to get news headlines.

I'll start work on getting XML data and parsing it from Newsboat or another RSS feed.

@Mohpann Mohpann added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Oct 9, 2024
@Mohpann
Copy link
Collaborator

Mohpann commented Oct 9, 2024

Looks like Newsboat is a manual CLI interface. Not really a good autonomous solution. Working on an RSS reader now.

@Mohpann Mohpann marked this pull request as draft October 9, 2024 05:37
@Minoru
Copy link

Minoru commented Oct 11, 2024

Hi, Newsboat maintainer here 👋

Newsboat is a TUI app, so indeed it's unsuitable for scripting. Your project is in Python; I've heard good things about https://pypi.org/project/feedparser/

Regardless of what library you end up using, please make sure you're sending a useful User-Agent string, and use ETag/Last-Modified if they're provided by the host. feedparser has support for all of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants