mattlisiv / newsapi-python

A Python Client for News API
MIT License
394 stars 136 forks source link

Issue with Page #21

Closed kushal3553 closed 6 years ago

kushal3553 commented 6 years ago

How do I get all the results as opposed to just 20? When I retrieve results it says I have 1404, but I only get 20 of the articles in the articles section of the dictionary. I know it says to use the page parameter but that does not seem to rectify the issue.

mattlisiv commented 6 years ago

Hi @kushal3553 ,

The 1404 is the number of results. It is not possible to retrieve all of these results at once. You can set the pageCount to a max of 100. The best solution is paginate through the results until you reach the amount of records (1404).

Thanks, Matt