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.3.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: amiami-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 45b87cfd4538234b71a2b2c61c2bd17d5159790f5b397cd19db4f262ace4a1f9
MD5 920712769bbb84b18005c2e8d4deb6ca
BLAKE2b-256 156516769f87bcc02fc288beb32f982f4d622a971a4f3483af74d7f0d6b76698

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