終点が決まっている場合は以下のように書くのがベストらしい。
test.py
current_source = ''
while current_source != driver.page_source:
current_source = driver.page_source
driver.execute_script('scrollTo(100, document.body.scrollHeight)')
sleep(1.5)
Go to list of users who liked
More than 5 years have passed since last update.
終点が決まっている場合は以下のように書くのがベストらしい。
current_source = ''
while current_source != driver.page_source:
current_source = driver.page_source
driver.execute_script('scrollTo(100, document.body.scrollHeight)')
sleep(1.5)
Register as a new user and use Qiita more conveniently
Go to list of users who liked