update kleinanzeigen URL

This commit is contained in:
sebthom
2023-05-15 21:45:57 +02:00
parent 44630c0506
commit b723e59ac4
4 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ class KleinanzeigenBot(SeleniumMixin):
def __init__(self) -> None:
super().__init__()
self.root_url = "https://www.ebay-kleinanzeigen.de"
self.root_url = "https://www.kleinanzeigen.de"
self.config:dict[str, Any] = {}
self.config_file_path = abspath("config.yaml")

View File

@@ -177,7 +177,7 @@ class AdExtractor(SeleniumMixin):
contact['phone'] = ''.join(phone_number.replace('-', ' ').split(' ')).replace('+49(0)', '0')
except NoSuchElementException:
contact['phone'] = None # phone seems to be a deprecated feature (for non-professional users)
# also see 'https://themen.ebay-kleinanzeigen.de/hilfe/deine-anzeigen/Telefon/
# also see 'https://themen.kleinanzeigen.de/hilfe/deine-anzeigen/Telefon/
return contact
@@ -188,7 +188,7 @@ class AdExtractor(SeleniumMixin):
:return: the links to your ad pages
"""
# navigate to your ads page
self.webdriver.get('https://www.ebay-kleinanzeigen.de/m-meine-anzeigen.html')
self.webdriver.get('https://www.kleinanzeigen.de/m-meine-anzeigen.html')
self.web_await(EC.url_contains('meine-anzeigen'), 15)
pause(2000, 3000)