Skip to content

Small Client publish, delete and republish "Kleinanzeigen" on ebayKleinanzeigen.de

License

Notifications You must be signed in to change notification settings

denisergashbaev/ebayKleinanzeigen

 
 

Repository files navigation

ebayKleinanzeigen

Prerequisites

Features

  • New Upload all images from a set subdirectory

  • New Configure shipping type in ad config

  • Automatically deletes and re-publishes ad if existing one is too old

  • Keeps track of ad publishing and last updating date

  • Ability to selectively enable / disable ads being published / updated

  • Overrides auto detected category (if caturl is specified) and fills the form data

  • Uploads multiple photos

Installation Guide (Ubuntu)

  1. Install Python 3 and PIP

    sudo apt-get install python3 python3-pip

  2. Install Selenium

    pip3 install selenium

  3. Install Gecko Driver and move it to /usr/bin

    • Check the release Page of Mozilla and replace #RELEASE# with the current release number, e.g. v0.26.0

      wget https://github.com/mozilla/geckodriver/releases/download/#RELEASE#/geckodriver-#RELEASE#-linux64.tar.gz

    • Extract the file

      tar xzf geckodriver-#RELEASE#-linux64.tar.gz

    • Move the driver to it's preferred location

      sudo mv geckodriver /usr/bin/geckodriver

  4. clone the app from git

    git clone https://github.com/donwayo/ebayKleinanzeigen

  5. configure the app

    • go to the Project-Folder

    • copy the sample to a new file

      cp config.json.example config.json

    • edit the file and fill in your details.

    • to find out the categories you need to start posting an ad on the website and then copy the corresponding link to the category from there. It's the screen where you select the category.

  6. Start the app

    • go to the app folder

      python3 kleinanzeigen.py --profile config.json

    • if launching from VS Code, the following path variable should be set when not in headless mode:

      export DISPLAY=":0" (source)

Now a browser window should start, login and fill out the fields automatically.

Installation Guide (MacOS, Tested on catalina)

# create new virtual env, for instance with conda
conda create --name ebayKleinanzeigen python=3.7
conda activate ebayKleinanzeigen
pip install selenium
brew install geckodriver

# if firefox is not installed yet
brew cask install firefox

git clone https://github.com/donwayo/ebayKleinanzeigen

# open config and enter your preferences. For cat_url, see below
cp config.json.example config.json
  • To run the app, run python kleinanzeigen.py --profile config.json

  • to find out the categories you need to start posting an ad on the website and then copy the corresponding link to the category from there. It's the screen where you select the category.

Now a browser window should start, login and fill the fields automatically.

Installation Guide (Windows)

  1. Download and install Python 3 for Windows from https://www.python.org/downloads/

  2. create a ebayKleinanzeigen directory somewhere you want

  3. move to Python script installation directory and install some requirements

    cd C:\Users\ulrik\AppData\Local\Programs\Python\Python39\Scripts
    
    pip install selenium
  4. download and extract the Gecko Driver for windows from https://github.com/mozilla/geckodriver/releases and place it in the ebayKleinanzeigen directory

  5. download the ebayKleinanzeigen app from git and extract it to the ebayKleinanzeigen directory

  6. configure the app

    • go to the ebayKleinanzeigen directory

    • copy the sample to a new file

      cp config.json.example config.json

    • edit the file and fill in your details.

    • to find out the categories you need to start posting an ad on the website and then copy the corresponding link to the category from there. It's the screen where you select the category.

  7. Start the app

    • go to the ebayKleinanzeigen directory

      python3 kleinanzeigen.py --profile config.json

Now a browser window should start, login and fill the fields automatically.

Additional Category fields

Elektronik > Foto foto.art_s Kamera, Objektiv, Zubehör, Kamera & Zubehör
Elektronik > Foto foto.condition_s Neu, Gebraucht, Defekt

Credits

  • @Lopp0 - initial script

  • @donwayo - Fixes and improvements

  • @MichaelKueller - Python 3 migration and cleanup

  • @n3amil - Fixes and improvements

  • @x86dev - Fixes and improvements

  • @neon-dev - Fixes and improvements

  • @kahironimashte - Install guide

  • @therealsupermario - Description Files, ad-level zip codes, custom update interval, support for additional category fields

  • @denisergashbaev - python 3.6 fixes, README.md, running from VS Code

About

Small Client publish, delete and republish "Kleinanzeigen" on ebayKleinanzeigen.de

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%