mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 14:50:20 +00:00
17 lines
332 B
Python
17 lines
332 B
Python
from requests_html import HTMLSession
|
|
|
|
session = HTMLSession()
|
|
|
|
def test_pagination():
|
|
pages = (
|
|
'https://xkcd.com/1957/',
|
|
'https://reddit.com/',
|
|
'https://smile.amazon.com/',
|
|
'https://theverge.com/archives'
|
|
)
|
|
|
|
for page in pages:
|
|
r = session.get(page)
|
|
assert next(r.html)
|
|
|