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

Uploaded Source

File details

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

File metadata

  • Download URL: amiami-0.3.1.tar.gz
  • Upload date:
  • Size: 4.4 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.1.tar.gz
Algorithm Hash digest
SHA256 806e0b75e51734c19fa70743fe46d0faa2879617e21e0572ad1df1b7605f4f49
MD5 1bb87550f7c56900e1cb01392f8cc895
BLAKE2b-256 8d5656e8962093cd2d37c5170ee11059a65b283e712d878ca4404c8a4e008777

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