{"id":15638094,"url":"https://github.com/philipperemy/google-news-scraper","last_synced_at":"2025-06-22T18:08:33.760Z","repository":{"id":52447031,"uuid":"64819999","full_name":"philipperemy/google-news-scraper","owner":"philipperemy","description":"Google News Scraper for languages like Japanese, Chinese... [VPN Support]","archived":false,"fork":false,"pushed_at":"2021-05-07T00:36:18.000Z","size":94,"stargazers_count":98,"open_issues_count":0,"forks_count":29,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-28T16:11:50.046Z","etag":null,"topics":["google","google-news","japanese","japanese-language","news","news-aggregator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philipperemy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["philipperemy"]}},"created_at":"2016-08-03T06:10:52.000Z","updated_at":"2025-04-21T20:42:34.000Z","dependencies_parsed_at":"2022-09-01T04:26:09.791Z","dependency_job_id":null,"html_url":"https://github.com/philipperemy/google-news-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/philipperemy/google-news-scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Fgoogle-news-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Fgoogle-news-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Fgoogle-news-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Fgoogle-news-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philipperemy","download_url":"https://codeload.github.com/philipperemy/google-news-scraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Fgoogle-news-scraper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261338979,"owners_count":23143896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google","google-news","japanese","japanese-language","news","news-aggregator"],"created_at":"2024-10-03T11:18:14.966Z","updated_at":"2025-06-22T18:08:28.742Z","avatar_url":"https://github.com/philipperemy.png","language":"Python","funding_links":["https://github.com/sponsors/philipperemy"],"categories":[],"sub_categories":[],"readme":"# Google News Scraper - Japanese and Chinese supported\n\nFor English articles, Google has a RSS feed that you can directly use. [Click here for English](https://news.google.com/rss?hl=en-US\u0026gl=US\u0026ceid=US:en).\n\nEach scraped article has the following fields:\n- **title**: Title of the article\n- **datetime**: Publication date\n- **content**: Full content (text format) - best effort\n- **link**: URL where the article was published\n- **keyword**: Google News keyword used to find this article\n\n## How many articles can I fetch with this scraper?\n\nNo upper bound of course but it should be in the range **`100,000 articles per day`** when scraping 24/7 with VPN enabled.\n\n## How to get started?\n```bash\ngit clone git@github.com:philipperemy/google-news-scraper.git \u0026\u0026 cd google-news-scraper\nvirtualenv -p python3 venv \u0026\u0026 source venv/bin/activate # optional but recommended!\npip install -r requirements.txt\npython main_no_vpn.py --keywords hello,toto --language ja  # for VPN support, scroll down!\n```\n\n## Output example\n\n`Article 1`\n```\n{\n    \"content\": \"(本文中の野村証券 [...] 生命経済研の熊野英生氏は指摘。  記事の全文 \\n保護主義を根拠とする円高説を信じ込むのは禁物であり、実際は米貿易赤字縮小と円安が進むかもしれないとＢＢＨの村田雅志氏は指摘。  記事の全文 \\n\",\n    \"datetime\": \"2015/11/03\",\n    \"keyword\": \"米国の銀行業務\",\n    \"link\": \"http://jp.reuters.com/article/idJPL3N12Y5QX20151104\",\n    \"title\": \"再送-インタビュー：運用高度化、ＰＥやハイイールド債増やす＝長門・ゆうちょ銀社長\"\n}\n```\n\n`Article 2`\n\n```\n{\n    \"content\": \"記事保存 有料会員の方のみご利用になれます。[...] 詳しくは、こちら 電子版トップ速報トップ アルゼンチン、ドル、通貨ペソ、外貨取引 来春の新入社員を募集　記者など４職種 【週末新紙面】宅配＋電子版お試し実施中！ 天気 プレスリリース検索 アカウント一覧 訂正・おわび\",\n    \"datetime\": \"2015/12/17\",\n    \"keyword\": \"アルゼンチン\",\n    \"link\": \"http://www.nikkei.com/article/DGXLASGM18H1B_Y5A211C1EAF000/\",\n    \"title\": \"アルゼンチンの通貨ペソ、大幅下落 対ドルで36％安\"\n}\n```\n**NOTE**: The field `content` was truncated in the README.\n\n## VPN\nScraping Google News usually results in a ban for a few hours. Using a VPN with dynamic IP fetching is a way to overcome this problem.\n\nIn my case, I subscribed to this VPN: [https://www.expressvpn.com/](https://www.expressvpn.com/).\n\nI provide a python binding for this VPN here: [https://github.com/philipperemy/expressvpn-python](https://github.com/philipperemy/expressvpn-python).\n\nAlso make sure that:\n- you can run `expressvpn` in your terminal.\n- ExpressVPN is properly configured:\n    - [https://www.expressvpn.com/setup](https://www.expressvpn.com/setup) \n    - [https://www.expressvpn.com/support/vpn-setup/app-for-linux/#download](https://www.expressvpn.com/support/vpn-setup/app-for-linux/#download)\n- you get `expressvpn-python (x.y)` where `x.y` is the version, when you run `pip list | grep \"expressvpn-python\"`\n\nEvery time the script detects that Google has banned you, it will request the VPN to get a fresh new IP and will resume.\n\n## Questions/Answers\n- Why didn't you use the RSS feed provided by Google News? It does not exist for Japanese!\n- What is the best way to use this scraper? If you want to scrape a lot of data, I highly recommend you to subscribe to a VPN, preferably ExpressVPN (I implemented the VPN wrapper and the interaction with this scraper).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipperemy%2Fgoogle-news-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilipperemy%2Fgoogle-news-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipperemy%2Fgoogle-news-scraper/lists"}