GithubHelp home page GithubHelp logo

kijiji_repost_headless_working's Introduction

Kijiji Repost Headless

Build Status

Post ads on Kijiji

Setup

  • This project requires python3 with: python-requests, bs4, pyyaml
  • Run pip3 install -r requirements.txt to install all dependencies

Requirements

  • The program currently requires that you post at LEAST one photo
  • As per Kijiji requirements, the item description must be at least 10 characters

Usage

Generating an ad posting file

  • Generate a posting file (item.yml) with the command python kijiji_repost_headless build_ad and follow the prompts
  • Place all photo dependencies in the path RELATIVE to item.yml
  • It is recommended that you create separate folders for each ad that you wish to post and include item.yml and photos in the same directory

Posting and Reposting an ad

Post one ad (item.yml):

python kijiji_repost_headless [-u USERNAME] [-p PASSWORD] post myproduct/item.yml

Repost one ad (item.yml); will delete the ad prior to posting if it already exists:

python kijiji_repost_headless [-u USERNAME] [-p PASSWORD] repost myproduct/item.yml

Show all active ads:

python kijiji_repost_headless [-u USERNAME] [-p PASSWORD] show

Delete all ads:

python kijiji_repost_headless [-u USERNAME] [-p PASSWORD] nuke

Delete one ad (using ad id):

python kijiji_repost_headless [-u USERNAME] [-p PASSWORD] delete myAdId

Project Structure

project
│   README.md
│   LICENSE
│   requirements.txt
│
└───kijiji_repost_headless
│   │   kijiji_api.py -> Interfaces with Kijiji
│   │   generate_post_file.py -> Makes item.yml
│   │   get_ids -> Used for retreiving kijiji location data
│   │   kijiji_categories_attr.json -> Finds out what properties each item has
│   │   kijiji_categories_attr.json -> Finds out what properties each item has
│   │   save_attribute_map_to_json.py -> Remakes kijiji_categories_attr.json
│   │   __main__.py -> Wraps kijiji_api.py for ease of use from command line, file is run when 'python kijiji_repost_headless' is run
│   │
└───tests

Issues

Please open a GitHub issue or pull request if you discover problems.

TODO

  • Better error handling
  • Avoid reuploading the same pictures again and again

kijiji_repost_headless_working's People

Contributors

amindhouib avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

kijiji_repost_headless_working's Issues

posting an ad

is there any updates to this? im getting errors

`C:\Users\xxx\Desktop\kijiji_repost_headless_working-main>python kijiji_repost_headless post handyman.yaml
Traceback (most recent call last):

File "C:\Users\xxx\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,

File "C:\Users\xxx\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)

File "kijiji_repost_headless_main_.py", line 193, in
main()

File "kijiji_repost_headless_main_.py", line 50, in main
args.function(args)

File "kijiji_repost_headless_main_.py", line 79, in post_ad
api.login(args.ssid)

File "kijiji_repost_headless\kijiji_api.py", line 107, in login
raise KijijiApiException("Could not log in.")

kijiji_api.KijijiApiException: Could not log in.`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.