Skip to content

Commit

Permalink
Fix download on given IDs list
Browse files Browse the repository at this point in the history
  • Loading branch information
faberto authored and sebthom committed Apr 1, 2024
1 parent 88d9e05 commit 2c7d165
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kleinanzeigen_bot/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ async def naviagte_to_ad_page(self, id_or_url:int | str) -> bool:
:return: whether the navigation to the ad page was successful
"""
if is_integer(id_or_url):
# navigate to start page, otherwise page can be None!
await self.web_open('https://www.kleinanzeigen.de/')
# enter the ad ID into the search bar
await self.web_input(By.ID, "site-search-query", id_or_url)
# navigate to ad page and wait
Expand Down

0 comments on commit 2c7d165

Please sign in to comment.