Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Diaoxiaozhang committed Jul 22, 2024
1 parent bba717b commit 34ee6eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import selenium.common.exceptions
import colorama

Expand Down Expand Up @@ -395,6 +396,8 @@ def login(self):
driver.get("https://passport.ximalaya.com/page/web/login")
try:
WebDriverWait(driver, 300).until(EC.url_to_be("https://www.ximalaya.com/"))
driver.get("https://www.ximalaya.com/sound/62919401")
WebDriverWait(driver, 30).until(EC.visibility_of_element_located((By.XPATH, '//*[@id="jymain"]/div[1]/div[2]/div[1]/div[1]/div/div[2]/div/h1')))
cookies = driver.get_cookies()
logger.debug('以下是使用浏览器登录喜马拉雅账号时的浏览器日志:')
for entry in driver.get_log('browser'):
Expand Down

0 comments on commit 34ee6eb

Please sign in to comment.