GithubHelp home page GithubHelp logo

mercari-python-api's Introduction

The Python Mercari API

A Python interface to the unofficial Mercari API.

Documentation

Documentation is as follows.

Public endpoints

  • mercari.fetch_all_items(keyword='bike', price_max=None)

    • keyword: Keyword search.
    • price_max: Maximum price in Yen.
    • returns: Returns a list of item urls.
  • mercari.get_item_info(item_url='https://item.mercari.com/jp/m72639077322/')

    • item_url: The URL of the item. Returns from the fetch_all_items function.
    • returns: Item object (name, desc, price, is sold out...)

Private endpoints

  • Not implemented yet.

Installation

Simply run:

git clone [email protected]:philipperemy/mercari-python-api.git
cd mercari-python-api
virtualenv -p python3.6 venv3.6
pip install -r requirements.txt
python setup.py install

Monitoring

cp gmail_conf.json.example gmail_conf.json
vim gmail_conf.json # edit this file.
cd examples/
python3.6 -u monitor.py --keywords "road bike, moto bike" --max_prices "43000,43000" --min_prices "0,0"

Important

Amazon AWS IPs are blacklisted by Mercari. So don't use AWS EC2 to run this script, it will not work.

mercari-python-api's People

Contributors

philipperemy avatar natthawatklakpetch avatar

Watchers

James Cloos avatar

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.