Skip to content

Commit

Permalink
chore:contains
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Apr 25, 2024
1 parent 8220ef6 commit 4a4af72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ async def visitPage(self, channelItems):
try:
if page > 1:
page_link = self.driver.find_element(
By.XPATH, f'//a[contains(@href, "page={page}")]'
By.XPATH,
f'//a[contains(@href, "={page}") and contains(@href, "{name}")]',
)
page_link.click()
soup = BeautifulSoup(self.driver.page_source, "html.parser")
Expand All @@ -99,7 +100,6 @@ async def visitPage(self, channelItems):
for result in results:
try:
url, date, resolution = getUrlInfo(result)
print(url, date, resolution)
if (
url
and checkUrlIPVType(url)
Expand Down

0 comments on commit 4a4af72

Please sign in to comment.