Menu

A Google News alert with the real article URLs (not news.google.com redirects)
📰

A Google News alert with the real article URLs (not news.google.com redirects)

DEV Community: python·novosai0day-a11y·about 12 hours ago
#CqHESTZh
#devtopython#devto#dev#google#country
Reading 0:00
15s threshold

Google News RSS is the easiest way to monitor a brand, a competitor or a topic in any country — until you notice that every link is a news.google.com/rss/articles/CBMi… redirect. You can't dedupe by publisher URL, you can't fetch the article, and your Slack alerts look like spam.

Google News Scraper with Original Article URLs (disclosure: I built it) resolves those links to the publisher's real URL and returns headline, publisher, date and snippet for any query, language and country.

from apify_client import ApifyClient

client = ApifyClient ( "YOUR_APIFY_TOKEN" ) run = client . actor ( "fujiwaranosai/google-news-scraper" ) . call ( run_input = { "queries" : [ '"Anthropic" OR "OpenAI"' , "Tesla -recall" ] , "timeRange" : "1d" , "language" : "en" , "country" : "us" , "onlyNew" : True , } ) for a in client . dataset ( run [ "defaultDatasetId" ] ) .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.