Skip to main content

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.

Source Distribution

merquery-0.4.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

merquery-0.4.0-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file merquery-0.4.0.tar.gz.

File metadata

  • Download URL: merquery-0.4.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for merquery-0.4.0.tar.gz
Algorithm Hash digest
SHA256 df040b4cd8b58928a31ab42d856a48d768848f16ba847e7a4ea48926805ba4ae
MD5 26c47b341cd6d48655fa584b35411204
BLAKE2b-256 406780b553c130d2ac7a6bc8c63f6de2a22a507c61686e76f6b52850aea37b61

See more details on using hashes here.

File details

Details for the file merquery-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for merquery-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b216e244ea440a549572190694cbcb44f2670f2ada95b1280f171f546b531fac
MD5 046776d001fc0ba2824f726372904c50
BLAKE2b-256 bf3b9849da7a365e921447e38ddcffc69ffd1858704abb6d2ca0593db2efbe2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page