6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

chromedriverで無限スクロールする方法

Posted at
scraping.py
for i in range (1, 100):
    browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
    sleep(5)

こちらのスクリプトでできるのですが、以下のリンクから最新のChromedriverをダウンロードしてから行った方がいいと思います。
https://sites.google.com/a/chromium.org/chromedriver/downloads

最新のChromedriverを使っていなかったせいで、エラーに悩まされました。。。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?