count_pages: Given search query, return how many pages of search results...

Description Usage Arguments Details

View source: R/count_pages.R

Description

Given search query, return how many pages of search results there are

Usage

1
count_pages(htm_input)

Arguments

htm_input

xml node containing the original html content of the page

Details

- The "page" query parameter isn't used on the first page of hits – this means that page 2 of hits uses the query parameter ?page=1. So need to increment this number by 1. - Need to handle situation when there are no hits for a search. - Need to handle situation when there is only one page of hits for a search.


kyeager4/ksulibSearch documentation built on May 23, 2019, 9:33 a.m.