Skip to main content

amiami api wrapper

Project description

Amiami API

A simple api wrapper around the amiami site.

Simple usage can be something like

import amiami

results = amiami.search("fumofumo plush")
for item in results.items:
  print("{}, {}".format(item.productName, item.availability))

By default the above will lag because it searches for EVERYTHING so it may time out your script. If you want to go through the pages yourself (for large queries), you can try the following

results = amiami.searchPaginated("fumofumo plush")
# results will have up to 30 items at this point. To see if you need to fetch more, you can check the .hasMore property
while results.hasMore:
  rs.searchNextPage()

That will simulate the regular search function, but in your loop, you could cut if off if results.currentPage > 10 or len(results.items) > 100 whatever other criteria you would like.

You can pass a proxy like in requests by passing in a keyed parameter

proxies = {"https": "http://localhost:3128"}
results = amiami.searchPaginated("fumofumo plush", proxies=proxies)

Sometimes items tend to result in an unknown status because the flag -> state parsing is a bit rough. These items will be added to the list with a status of Unknown status?. They will also print out a message with the flags and item code. Good to check your log and see what's going on.

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

amiami-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file amiami-0.2.0.tar.gz.

File metadata

  • Download URL: amiami-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.10

File hashes

Hashes for amiami-0.2.0.tar.gz
Algorithm Hash digest
SHA256 75002e8a2df0a5a72f69fbd097366b2be27fb82bfd946fd3d139c3d46283ef53
MD5 0ff614fb44b8433d2e3f75664ef0a636
BLAKE2b-256 aa63c028e2c7074738b2a03d941b84a333033d97cf108b0bc9fa8718633066d2

See more details on using hashes here.

Supported by

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