mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 06:46:14 +00:00
Merge branch 'master' of github.com:kennethreitz/requests-html
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from requests_html import HTMLSession
|
||||
|
||||
session = HTMLSession()
|
||||
|
||||
def test_pagination():
|
||||
pages = (
|
||||
'https://xkcd.com/1957/',
|
||||
'https://reddit.com/',
|
||||
'https://pornhub.com/',
|
||||
'https://theverge.com/archives'
|
||||
)
|
||||
|
||||
for page in pages:
|
||||
r = session.get(page)
|
||||
assert next(r.html)
|
||||
|
||||
Reference in New Issue
Block a user