O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  

Controlling News.Google's Output Page Size
All of Google's result pages are hardcoded to present a maximum of 100 items per page. Unfortunately, news.google doen't even permit you to specify how many items you want per page - it defaults to ten. To reduce the number of times you have to flip through the results pages, you can increase the output page size.

Contributed by:
phil paxton
[03/31/04 | Discuss (0) | Link to this hack]

When processing a lot of information on web pages, such as from Google-related tools, I prefer to get as much on a single page as possible. This provides the ability to scroll down and read|scan, as opposed to spending time paging. Although some Google tools provide you with the ability to specify the number of items per page in the output, some do not; and regardless of what you do, Google's code is hardcoded to prevent you from specifying anything over 100.
News.Google, a personal favorite, is one which does not permit you to specify the output page size so you receive the default of ten items per page. A universal Google parameter appearing on the querystring is "&num=x", where "x" is the number of items you want to display on each page.
Although this doesn't permit you to circumvent the underlying Google limits, it does provide you with increasing the default tenfold.

O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.