RSS Google news language

旧街凉风 提交于 2020-02-02 14:48:10

问题


I am creating a RSS feed from Google News and it's working so far, but I'd like to get news from 2 languages, not just English

This is my RSS URL so far:

https://news.google.com/rss/search?q=energy+efficiency

It's working fine, just need to add the 2 languages filter (German + English)

This is what I've found in different blogs, but I do not wish to filter the news by location, just by language:

"If you wish to have news in English and located from the United States sources, add the following query string to the URL to change country and language:"

&hl=en-US&gl=US&ceid=US:en

No matter how I modify the above URL, I get an error...


回答1:


After reading lots of posts and playing around, I found the solution.

In case someone needs it: https://news.google.com/rss?q=energy+efficiency&hl=en

Add the language code at the end of the link:

&hl=en //English

&hl=de //German



来源:https://stackoverflow.com/questions/55512323/rss-google-news-language

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!