ranahaani/GNews — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a lightweight Python package called GNews that lets someone search Google News and get clean JSON style results without dealing with RSS feeds themselves.

I want a simple class people can import and use for top news, keyword searches, major topics like business or sports, location based news, and news from a specific website like cnn.com. Let users choose language, country, date range or recent period, max number of results, excluded websites, and optional proxy settings. Each result should include the publisher, title, description, published date, and article URL.

Also add a helper to fetch the full article content when possible, so users don’t have to write their own scraper. Please make it easy to install with pip, include clear examples, a small demo script, tests for the main search methods, and a friendly README that shows common use cases. Keep the code clean and simple, and look up current Google News RSS behavior online if you need to.

Want more depth? Deep Reverse