def _get_last_page_offset(url_html):
    """Obtain last page offset.

    Required to stop iterating over pages.

    Parameters
    ----------
    url_html : BeautifulSoup object

    Returns
    -------
    int

    """
    page_numbers = url_html.findAll("div", attrs={"class": "pageNumbers"})[0]
    last_page_offset = page_numbers.findAll("a")[-1].get("data-offset")
    return int(last_page_offset)