Re: Amazon Product Advertising API
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bryan, I decided not to totally write a new module for it. I took pyaws, and re-factored it to account for the secret key you now have to use with requests. If you want the new ecs.py from pyaws, I'll be happy to get it to you. I'm not 100% sure it works, but for what I've used it for I think it does. Any testing is 100% appreciated. Luke Seelenbinder luke.seelenbin...@gmail.com "I [may] disapprove of what you say, but I will defend to the death your right to say it." -- Voltaire br...@instantdirectmarketing.com wrote: > Luke, > I was curious how this was going. > > I did find this: > http://jjinux.blogspot.com/2009/06/python-amazon-product-advertising-api.html > > import time > import urllib > > from boto.connection import AWSQueryConnection > > AWS_ACCESS_KEY_ID = '...' > AWS_ASSOCIATE_TAG = '...' > AWS_SECRET_ACCESS_KEY = '...' > > > search_index = 'All' > keywords = 'pink' > aws_conn = AWSQueryConnection( > aws_access_key_id=AWS_ACCESS_KEY_ID, > aws_secret_access_key=AWS_SECRET_ACCESS_KEY, is_secure=False, > host='ecs.amazonaws.com') > aws_conn.SignatureVersion = '2' > params = dict( > Service='AWSECommerceService', > Version='2008-08-19', > SignatureVersion=aws_conn.SignatureVersion, > AWSAccessKeyId=AWS_ACCESS_KEY_ID, > AssociateTag=AWS_ASSOCIATE_TAG, > Operation='ItemSearch', > SearchIndex=search_index, > Keywords=keywords, > ResponseGroup='ItemAttributes,Images', > Order='salesrank', > Timestamp=time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime())) > verb = 'GET' > path = '/onca/xml' > qs, signature = aws_conn.get_signature(params, verb, path) > qs = path + '?' + qs + '&Signature=' + urllib.quote(signature) > print "verb:", verb, "qs:", qs > response = aws_conn._mexe(verb, qs, None, headers={}) > print response.read() > > > > On Jul 17, 8:34 am, Luke Seelenbinder wrote: >> I'm working on a django project right now that uses the Amazon Product >> Advertising API. I was using pyaws, but it is quite outdated and won't >> be useful for the changes coming in the next month. >> >> My first question is whether you know of any other python library for >> it. >> Second question, is there anybody willing to help me develop a new >> python abstraction for the api. >> >> I'm going to get started today with a new python api, if there is >> anybody willing to help, drop me an email (lukeqsee at gmail), or just >> reply to this message. >> >> Thanks, >> Luke > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkp0PE8ACgkQXQrGVCncjPx4QACfQGVAE5fnZwUcM8DLCLmA9ZLc loQAnjWhHC6zZS/2B8IkdGXkItTC20aT =qxR4 -END PGP SIGNATURE- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Amazon Product Advertising API
Luke, I was curious how this was going. I did find this: http://jjinux.blogspot.com/2009/06/python-amazon-product-advertising-api.html import time import urllib from boto.connection import AWSQueryConnection AWS_ACCESS_KEY_ID = '...' AWS_ASSOCIATE_TAG = '...' AWS_SECRET_ACCESS_KEY = '...' search_index = 'All' keywords = 'pink' aws_conn = AWSQueryConnection( aws_access_key_id=AWS_ACCESS_KEY_ID, aws_secret_access_key=AWS_SECRET_ACCESS_KEY, is_secure=False, host='ecs.amazonaws.com') aws_conn.SignatureVersion = '2' params = dict( Service='AWSECommerceService', Version='2008-08-19', SignatureVersion=aws_conn.SignatureVersion, AWSAccessKeyId=AWS_ACCESS_KEY_ID, AssociateTag=AWS_ASSOCIATE_TAG, Operation='ItemSearch', SearchIndex=search_index, Keywords=keywords, ResponseGroup='ItemAttributes,Images', Order='salesrank', Timestamp=time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime())) verb = 'GET' path = '/onca/xml' qs, signature = aws_conn.get_signature(params, verb, path) qs = path + '?' + qs + '&Signature=' + urllib.quote(signature) print "verb:", verb, "qs:", qs response = aws_conn._mexe(verb, qs, None, headers={}) print response.read() On Jul 17, 8:34 am, Luke Seelenbinder wrote: > I'm working on a django project right now that uses the Amazon Product > Advertising API. I was using pyaws, but it is quite outdated and won't > be useful for the changes coming in the next month. > > My first question is whether you know of any other python library for > it. > Second question, is there anybody willing to help me develop a new > python abstraction for the api. > > I'm going to get started today with a new python api, if there is > anybody willing to help, drop me an email (lukeqsee at gmail), or just > reply to this message. > > Thanks, > Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Amazon Product Advertising API
I'm working on a django project right now that uses the Amazon Product Advertising API. I was using pyaws, but it is quite outdated and won't be useful for the changes coming in the next month. My first question is whether you know of any other python library for it. Second question, is there anybody willing to help me develop a new python abstraction for the api. I'm going to get started today with a new python api, if there is anybody willing to help, drop me an email (lukeqsee at gmail), or just reply to this message. Thanks, Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---