Skip to content

Commit

Permalink
update. seleniumのブラウザスクロールの処理を消し忘れてたのでコメントアウト.
Browse files Browse the repository at this point in the history
  • Loading branch information
blacknon committed Sep 7, 2023
1 parent 194ed94 commit 4229938
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pydork/engine_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,12 @@ def get_result(self, url: str, method='GET', data=None):
if self.USE_SELENIUM:
result = self.request_selenium(url, method=method, data=data)

for i in range(0, 10):
self.driver.execute_script(
"window.scrollTo(0,document.body.scrollHeight)"
)
time.sleep(0.5)
# NOTE: seleniumでのブラウザスクロール. googleでの処理で不要になったため、ただ遅くなるだけで不便なので一旦コメントアウト.
# for i in range(0, 10):
# self.driver.execute_script(
# "window.scrollTo(0,document.body.scrollHeight)"
# )
# time.sleep(0.5)

# 優先度2: Splash経由でのアクセス(Seleniumが有効になってない場合はこちら)
elif self.USE_SPLASH:
Expand Down

0 comments on commit 4229938

Please sign in to comment.