mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
update kleinanzeigen URL
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
## <a name="about"></a>About
|
## <a name="about"></a>About
|
||||||
|
|
||||||
**kleinanzeigen-bot** is a console based application to ease publishing of ads to ebay-kleinanzeigen.de.
|
**kleinanzeigen-bot** is a console based application to ease publishing of ads to [kleinanzeigen.de](https://kleinanzeigen.de).
|
||||||
|
|
||||||
It is the spiritual successor to [Second-Hand-Friends/ebayKleinanzeigen](https://github.com/Second-Hand-Friends/ebayKleinanzeigen) with the following advantages:
|
It is the spiritual successor to [Second-Hand-Friends/ebayKleinanzeigen](https://github.com/Second-Hand-Friends/ebayKleinanzeigen) with the following advantages:
|
||||||
- supports Microsoft Edge browser (Chromium based)
|
- supports Microsoft Edge browser (Chromium based)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class KleinanzeigenBot(SeleniumMixin):
|
|||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
self.root_url = "https://www.ebay-kleinanzeigen.de"
|
self.root_url = "https://www.kleinanzeigen.de"
|
||||||
|
|
||||||
self.config:dict[str, Any] = {}
|
self.config:dict[str, Any] = {}
|
||||||
self.config_file_path = abspath("config.yaml")
|
self.config_file_path = abspath("config.yaml")
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ class AdExtractor(SeleniumMixin):
|
|||||||
contact['phone'] = ''.join(phone_number.replace('-', ' ').split(' ')).replace('+49(0)', '0')
|
contact['phone'] = ''.join(phone_number.replace('-', ' ').split(' ')).replace('+49(0)', '0')
|
||||||
except NoSuchElementException:
|
except NoSuchElementException:
|
||||||
contact['phone'] = None # phone seems to be a deprecated feature (for non-professional users)
|
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
|
return contact
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ class AdExtractor(SeleniumMixin):
|
|||||||
:return: the links to your ad pages
|
:return: the links to your ad pages
|
||||||
"""
|
"""
|
||||||
# navigate to your ads page
|
# 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)
|
self.web_await(EC.url_contains('meine-anzeigen'), 15)
|
||||||
pause(2000, 3000)
|
pause(2000, 3000)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ build-backend = "pdm.pep517.api"
|
|||||||
[project]
|
[project]
|
||||||
name = "kleinanzeigen-bot"
|
name = "kleinanzeigen-bot"
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
description = "Command line tool to publish ads on ebay-kleinanzeigen.de"
|
description = "Command line tool to publish ads on kleinanzeigen.de"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "sebthom", email = "sebthom@users.noreply.github.com"},
|
{name = "sebthom", email = "sebthom@users.noreply.github.com"},
|
||||||
|
|||||||
Reference in New Issue
Block a user