brh55 / google-news-rss

🗞 A node module (with browser support) that searches Google News RSS Feed and returns a usable JSON response
MIT License
25 stars 6 forks source link

"num" property does not work well #11

Open mvshmakov opened 6 years ago

mvshmakov commented 6 years ago

When I want to specify number of articles to return, I face an issue. Also, tests are incorrect, because of the difference in expected sum of articles and returned. When I try to make them work well, error is firing.

image

Whereas in the practical use of package as specified in readme.md (with .then()), despite the fact that I pass different value of "num", function ".search()" always returns an array of 20 items.

brh55 commented 6 years ago

@mvshmakov I apologize this was working until recent changes to the Google rss feeds, I haven't been able to find the correct parameter for number count. I've left it there intentionally hoping that I could figure it out quickly, but have not had any luck.

Here is a sample url: https://news.google.com/news/rss/search/section/q/chicago,food/chicago,food?hl=en&gl=US&ned=us&num=50

bariscc commented 6 years ago

I got here while searching the parameter for the RSS. Looks like num parameter is deprecated. https://productforums.google.com/forum/#!topic/news/Sx5lr6wuL_Q