Skip to content

Commit

Permalink
fix navigation button selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Knudsen authored and sebthom committed May 11, 2024
1 parent 822d3b7 commit ba73ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kleinanzeigen_bot/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def extract_own_ads_urls(self) -> list[str]:
if not multi_page: # only one iteration for single-page overview
break
# check if last page
nav_button:Element = (await self.web_find_all(By.CSS_SELECTOR, 'button.jsx-2828608826'))[-1]
nav_button:Element = (await self.web_find_all(By.CSS_SELECTOR, 'button.jsx-1553636621'))[-1]
if nav_button.attrs['title'] != 'Nächste':
LOG.info('Last ad overview page explored.')
break
Expand Down

0 comments on commit ba73ebb

Please sign in to comment.