Advertisement
JojoBizarov

Untitled

Apr 21st, 2018
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def get_last_page_number(html):
  2.     return int(
  3.         re.search(
  4.             r' : (\d+)',
  5.             lxml.html.tostring(
  6.                 xpath_get(
  7.                     html, SETTINGS['xpath']['last_page_number']
  8.                 )
  9.             ).decode('utf-8')
  10.         ).group(1)
  11.     )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement