Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dirty hack to hopefully fix #219 #230

Closed
wants to merge 3 commits into from

Conversation

DreckSoft
Copy link
Contributor

Issue #, if available:
#219

Description of changes:
Use undetected_chromedriver
This is a really quick and ugly hack. It requires selenium to be fixed to 4.12 and some experimental chromedriver options disabled. With this patch you MAY be able to publish something. At least with a working Chromium profile the anti-bot feature did not appear. Strangely login detection did not work, neither did login. If I enter https://www.keinanzeigen.de manually in the URL of the newly launched browser while displaying the login page the second time, it worked. So this will require more work but it is a start.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@SphaeroX
Copy link
Contributor

SphaeroX commented Dec 6, 2023

[INFO]  -> found 145 categories
[INFO] Creating WebDriver session...
[INFO] Using Browser: EDGE 119.0.2151.97 [C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe]
[ERROR] ConnectionError: Could not reach host. Are you offline?

Copy link
Contributor

@apeltzer apeltzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me and seems to be working for me 👍🏻

@SphaeroX
Copy link
Contributor

i still got the error:

2023-12-28 15:52:06,471 [INFO] App version: 0.1.dev263+g08bffa8
2023-12-28 15:52:06,471 [WARNING] You provided no ads selector. Defaulting to "new".
2023-12-28 15:52:06,476 [INFO] Loading config from [C:\Users\xxx\OneDrive\Dokumente\kleinanzeigen-bot\config.yaml]...
2023-12-28 15:52:06,497 [INFO]  -> found 145 categories
2023-12-28 15:52:06,498 [INFO] Creating WebDriver session...
2023-12-28 15:52:06,508 [INFO] Using Browser: EDGE 120.0.2210.91 [C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe]
2023-12-28 15:52:08,236 [ERROR] ConnectionError: Could not reach host. Are you offline?

@apeltzer
Copy link
Contributor

Did you install as @DreckSoft suggested from his fork using pdm?

@SphaeroX
Copy link
Contributor

SphaeroX commented Dec 29, 2023

@apeltzer u mean that one?

pip install pdm
pdm install

yes i did it, but maybe its a local problem with msedge, can i use an other browser?

@apeltzer
Copy link
Contributor

I used chrome 🤷‍♂️ with separate profile

@euberdeveloper
Copy link

euberdeveloper commented Feb 17, 2024

In case it won't be merged or it will not work, you can try like in #259

@sebthom
Copy link
Contributor

sebthom commented Mar 7, 2024

Latest release does not use selenium anymore

@sebthom sebthom closed this Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants