Skip to content

Commit

Permalink
chore: tweak web bot zoom percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenShuo2021 committed Nov 30, 2024
1 parent 5d1659e commit 1d81007
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2dl/web_bot/drission_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def auto_page_scroll(
# main business
self.handle_login()
self.handle_read_limit()
self.page.run_js("document.body.style.zoom='75%'")
self.page.run_js("document.body.style.zoom='50%'")
scroll_down()

# Sleep to avoid Cloudflare blocking
Expand Down
2 changes: 1 addition & 1 deletion v2dl/web_bot/selenium_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def auto_page_scroll(

# main business
self.handle_login()
self.driver.execute_script("document.body.style.zoom='75%'")
self.driver.execute_script("document.body.style.zoom='50%'")
self.scroller.scroll_to_bottom()
SelBehavior.random_sleep(5, 15)

Expand Down

0 comments on commit 1d81007

Please sign in to comment.