google-news-rss icon indicating copy to clipboard operation
google-news-rss copied to clipboard

"num" property does not work well

Open mvshmakov opened this issue 7 years ago • 2 comments

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.

mvshmakov avatar Feb 10 '18 14:02 mvshmakov

@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

brh55 avatar Feb 12 '18 20:02 brh55

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

bariscc avatar Feb 15 '18 23:02 bariscc