Second-Hand-Friends / kleinanzeigen-bot

A dilligent command line tool to publish ads on kleinanzeigen.de
GNU Affero General Public License v3.0
197 stars 43 forks source link

[BUG] Error message with more than 25 adverts/display on 2+ pages #278

Closed PlanetDyna closed 3 months ago

PlanetDyna commented 5 months ago

✔️ Expected Behaviour

All adverts are downloaded. Not just the one on page 1.

🐞 Actual Behaviour

Error message/stop the download if the adverts are on page 2 for example.

📋 Steps to Reproduce

Create more than 25 adverts.

📺 What browsers are you seeing the problem on? (if applicable)

No response

💻 What operating systems are you seeing the problem on? (if applicable)

No response

📃 Relevant log output (if applicable)

No response

Code of Conduct

euberdeveloper commented 5 months ago

Isn't it a duplicate of: #263

TylonHH commented 5 months ago

As I have also more then 25 ads I searched here and fpund all this related issues: https://github.com/Second-Hand-Friends/kleinanzeigen-bot/issues/170 https://github.com/Second-Hand-Friends/kleinanzeigen-bot/issues/149 https://github.com/Second-Hand-Friends/kleinanzeigen-bot/issues/263

This is the verbose error message I got. I hope this helps someone to debug:

[INFO] It seems like you have many ads!
[DEBUG] Closing Browser session...
[INFO] terminated browser with pid 3840 successfully
[ERROR] Traceback (most recent call last):
  File "kleinanzeigen_bot\__main__.py", line 9, in <module>
  File "kleinanzeigen_bot\__init__.py", line 828, in main
  File "asyncio\base_events.py", line 684, in run_until_complete
  File "kleinanzeigen_bot\__init__.py", line 114, in run
  File "kleinanzeigen_bot\__init__.py", line 752, in download_ads
  File "kleinanzeigen_bot\extract.py", line 169, in extract_own_ads_urls
  File "kleinanzeigen_bot\web_scraping_mixin.py", line 412, in web_find_all
  File "kleinanzeigen_bot\web_scraping_mixin.py", line 284, in web_await
TimeoutError: No HTML elements found using CSS selector 'button.jsx-2828608826' within 5 seconds.

I use the latetest exed for windows.

provinzio commented 3 months ago

Does the PR fix this issue? @PlanetDyna

According to your added verbose error message, it should be fixed now.

sebthom commented 3 months ago

Closing issue as it is supposed to be fixed by #298. Feel free to re-open if issue still persists