Skip to content

Commit

Permalink
Merge pull request #97 from Guovin/dev
Browse files Browse the repository at this point in the history
chore:click method
  • Loading branch information
Guovin authored Apr 26, 2024
2 parents e9311f9 + eb95e81 commit d3dc7af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def visitPage(self, channelItems):
(By.XPATH, '//input[@type="submit"]')
)
)
submit_button.click()
self.driver.execute_script("arguments[0].click();", submit_button)
isFavorite = name in config.favorite_list
pageNum = (
config.favorite_page_num
Expand All @@ -111,7 +111,9 @@ async def visitPage(self, channelItems):
)
)
)
page_link.click()
self.driver.execute_script(
"arguments[0].click();", page_link
)
soup = BeautifulSoup(self.driver.page_source, "html.parser")
results = (
soup.find_all("div", class_="result") if soup else []
Expand Down

0 comments on commit d3dc7af

Please sign in to comment.