Code Monkey home page Code Monkey logo

amazon-wish-lister's Introduction

Terence Eden's about me card.

amazon-wish-lister's People

Contributors

doitlikejustin avatar edent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

amazon-wish-lister's Issues

Doesn't link to the "give as gift" version

A valid Wishlist item - i.e. "Buy this as a gift for someone" has the URL

https://www.amazon.co.uk/dp/B015EJMV76/ref=wl_it_dp_v_nS_ttl? _encoding=UTF8&colid=13GFCFR2B2IX4&coliid=INLKGRXMA20E4

It's that coliid which makes Amazon say "send this as a gift".

The coliid changes for every item.

Broken - Japanese Encoding

id=HIOT27YDKDXW&tld=co.jp gives

Corsair Gaming K95 RGB MX Red Keyboard �ú�{�ê�L�[�{�[�h �Q�[�~���O�L�[�{�[�h KB298 CH-9000082-JP

Should be

Corsair Gaming K95 RGB MX Red Keyboard � 日本語キーボード ゲーミングキーボード KB298 CH-9000082-JP

Suspect problem with multibyte UTF-8 in phpquery.php.

(http://www.amazon.co.jp/gp/registry/wishlist/HIOT27YDKDXW)

XML Encoding is Invalid

The XML generated is invalid.

Proposal

  • Add new ?format=XML to generate valid XML.
  • Keep old version for legacy compatibility. Still accessed by ?format=xml

RSS

Convert the wishlist into an RSS feed.

Broken - Indian Price

id=1HCKFSCVFG2UW&tld=in gives

[new-price] => <span style="text-decoration: inherit; white-space: nowrap;"><span class="currencyINR">  </span><span class="currencyINRFallback" style="display:none">Rs. </span>276.00</span>

Add affiliate links

According to https://affiliate-program.amazon.co.uk/gp/associates/help/t5/a21

So if you need to build a simple text link to a specific item on Amazon.co.uk, here is the link format you need to use:
http://www.amazon.co.uk/dp/ASIN/ref=nosim?tag=YOURASSOCIATEID

e.g. http://www.amazon.co.uk/dp/B00U7EXH72/ref=nosim?tag=shkspr-21

According to https://affiliate-program.amazon.co.uk/gp/associates/help/t50

To create an Associates tagged link, simply add your Associates tag after the “=” sign at the end of the URL: http://amzn.com/B00154JDAI/tag=

This doesn't work for the UK. Replacing com with co.uk results in an error.

Date added - broken in foreign languages, not timestamps.

Ideally the date-added would be a normal timestamp.

At the moment is is Added October 24, 2015 in English, or Hinzugefügt '2. November 2015' in German.

It's trivial to remove "Added" in the English versions - but a bit more work to replace the various foreign words.

The date still needs converting to a timestamp.

Broken Titles

Coming through like:

<title> <span class="a-offscreen">£4.49</span><span aria-hidden="true"><span class="a-price-symbol">£</span><span class="a-price-whole">4<span class="a-price-decimal">.</span></span><span class="a-price-fraction">49</span></span></title>
<link>http://www.amazon.co.uk/dp/B07799VCZQ/ref=nosim?tag=fiverfun-21</link>

Get AISN

ASIN is a 10 character string - https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number

Typical URls

    http://www.amazon.co.uk/dp/B00IKIKDOM/ref=wl_it_dp_v_nS_ttl/278-9067265-3899254?_encoding=UTF8&colid=15SCUHW5RONL6&coliid=ICBVF90YVEFF4&psc=1
    http://www.amazon.co.jp/dp/B00OOD4RLC/ref=wl_it_dp_v_S_ttl/376-5041442-9894656?_encoding=UTF8&colid=HIOT27YDKDXW&coliid=I2199742B598MC
    http://www.amazon.de/dp/B00TRQ0CSI/ref=wl_it_dp_v_nS_ttl/275-4926214-1753269?_encoding=UTF8&colid=X82UNL4VMFM9&coliid=I2G0K6DW0S1MHT
    http://www.amazon.ca/dp/B00A7WDYYU/ref=wl_it_dp_v_nS_ttl/180-5102401-8253319?_encoding=UTF8&colid=3OR5VN6044A6I&coliid=I30UZD33GMHBK3
    http://www.amazon.com/dp/B00DQYNKCM/ref=wl_it_dp_v_nS_ttl/191-5492771-2500240?_encoding=UTF8&colid=37XI10RRD17X2&coliid=ILV2H2MHRX7HU&psc=1
    http://www.amazon.es/dp/B007RXO716/ref=wl_it_dp_v_nS_ttl/279-0188662-6542856?_encoding=UTF8&colid=1ORXZQUAJ8H96&coliid=I35SODJIWT2DTA
    http://www.amazon.in/dp/B00E81GGGY/ref=wl_it_dp_v_nS_ttl/275-0633160-8128200?_encoding=UTF8&colid=1HCKFSCVFG2UW&coliid=IUH4Z2TCPKDF2
    http://www.amazon.it/dp/B00Y0O5L6U/ref=wl_it_dp_v_nS_ttl/280-4610661-1922667?_encoding=UTF8&colid=2RPUB231AJ78D&coliid=IFOHKF3REGMUU&psc=1
    http://www.amazon.com.br/dp/B00YSILJZU/ref=wl_it_dp_v_nS_ttl/177-3586976-1287133?_encoding=UTF8&colid=3OF5TPV1ZMWLM&coliid=I36RLGSQVQOUYH
    http://www.amazon.fr/dp/B003FRXFWK/ref=wl_it_dp_v_S_ttl/275-1202652-6343230?_encoding=UTF8&colid=1EHE58O7QKWTH&coliid=I3EGD6MPOTC9GY

Add a limit

Don't always need hundreds of items returned. Slows things down.

unable to retrieve wishlist items

Hi

i am unable to retrieve any wishlist item using the wishlist id

it seems like it is due to a robot check by amazon as per issue raised on justin's github page?

doitlikejustin#28

would adding different ip address to the API that rotates be enough to bypass the robot check?

appreciate any advice!

Thanks!

Larger Images - with HTTPS

The normal image and HTTPS image links are:

  • http://ecx.images-amazon.com/images/I/41kWB4Z4PTL._SL250_.jpg
  • https://images-eu.ssl-images-amazon.com/images/I/41kWB4Z4PTL._SL250_.jpg

The size of the image is controlled by the last 3 digits. The usual maximum is 500px. To ensure the maximum image size, we can simply add a 0 to the end. i.e.

https://images-eu.ssl-images-amazon.com/images/I/41kWB4Z4PTL._SL2500_.jpg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.