def METHOD_NAME(start_page, end_page, max_tables, username):
    """Checks specified pages of search results (in the default order,
    i.e. latest first), clicks through to each submission, and loads each of
    the first max_table data tables in turn."""
    if end_page < start_page:
        click.echo("end-page must be greater than or equal to start-page")
        exit(1)
    click.echo("Checking from page %s to %s of search results"
               % (start_page, end_page))
    driver = _get_driver(username)
    for page in range(int(start_page), int(end_page) + 1):
        click.echo("Checking page %s of search results" % page)
        driver.get('https://www.hepdata.net/search/?page=%s' % page)
        record_links = driver.find_elements(By.CSS_SELECTOR,
            '.search-result-item .record-header a'
        )
        urls = []
        for link in record_links:
            urls.append(link.get_attribute('href'))
        for url in urls:
            _check_url(url, 1, max_tables, driver)