Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

UNOFFICIAL Mercari(jp) item search query builder

Project description

https://badge.fury.io/py/merquery.svg

Install

$ pip install merquery

Usage

import merquery as mq

q = mq.Merquery()
url = q.max_price(1000) \
        .min_price(100) \
        .root_category(mq.RootCategory.VINTAGE_AND_COLLECTBLES) \
        .status(mq.ItemStatus.ON_SALE) \
        .shipping_payer(mq.ShippingPayer.SELLER) \
        .condition(mq.ItemCondition.NEW) \
        .order(mq.ItemOrder.LIKES) \
        .page(2) \
        .keyword('秋本帆華') \
        .build()
print(url)

# Output: https://www.mercari.com/jp/search/?item_condition_id%5B1%5D=1&status_on_sale=1&shipping_payer_id%5B2%5D=1&page=2&keyword=%E7%A7%8B%E6%9C%AC%E5%B8%86%E8%8F%AF&sort_order=like_desc&max_price=1000&min_price=100

Supported queries

  • keyword
  • max price
  • min price
  • item status
  • shipping payer
  • item condition
  • brand name
  • sort order
  • root category
  • page

Unsupported queries

  • size
  • child category
  • grand child category

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for merquery, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size merquery-0.4.0-py2.py3-none-any.whl (5.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size merquery-0.4.0.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page