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] Cannot run in headless mode #297

Closed bochen87 closed 4 months ago

bochen87 commented 4 months ago

✔️ Expected Behaviour

When uncommenting --headless in config, it should be able to run in headless mode

🐞 Actual Behaviour

whenever i run in headless mode with config, it has some error and closes. Whenever i change the config in code to headless = True, then it runs into a captcha issue

📋 Steps to Reproduce

uncomment -- headless from config and try or set headless = True in https://github.com/Second-Hand-Friends/kleinanzeigen-bot/blob/822d3b7e7c6721feea26c523d5abc20cc50b32f9/src/kleinanzeigen_bot/web_scraping_mixin.py#L152

📺 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

bochen87 commented 4 months ago

I guess maybe related to this: https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1848

sebthom commented 4 months ago

Running the bot in headless mode is not supported as there are situations where manual interaction is required (captchas, device verification).