amazonify

Sagteware kiekie:
amazonify
Sagteware besonderhede:
Weergawe: 0.1
Upload datum: 14 Apr 15
Ontwikkelaar: Randall Degges
Lisensie: Gratis
Populariteit: 0

Rating: 5.0/5 (Total Votes: 1)

amazonify is die eenvoudigste manier Amazon Koste skakels te bou, in Python.
Installeer
Om te installeer `` python-amazonify``, eenvoudig hardloop
`` Pit installeer amazonify`` en jy sal kry die nuutste weergawe geïnstalleer
outomaties.
Gebruik
Die gebruik van `` amazonify`` is baie maklik. Al wat jy doen is dit slaag die Amazon URL wat jy wil
hou te maak in 'n vennoot skakel, en jou Amazon affiliate tag.
`` Luislang `
>>> Van amazonify invoer amazonify
>>>
>>> # Jou Amazon affiliate tag:
>>> Affiliate_tag = 'rdegges-20'
>>>
>>> # Sommige nie-affiliate Amazon URLs:
>>> Urls = [
... & Nbsp; & nbsp; & nbsp; & nbsp; 'http://www.amazon.com/Canon-21-1MP-Frame-Digital-Camera/dp/B001G5ZTLS/ref=sr_1_1?ie=UTF8&qid=1337148615&sr=8-1',
... & Nbsp; & nbsp; & nbsp; & nbsp; 'Http://www.amazon.com/Transcend-Compact-Flash-Card-400X/dp/B002WE4H8I/ref=pd_bxgy_p_img_b',
... & Nbsp; & nbsp; & nbsp; & nbsp; 'Http://www.amazon.com/Canon-LP-E6-Battery-Digital-Cameras/dp/B001KELVS0/ref=pd_bxgy_e_img_b',
... & Nbsp; & nbsp; & nbsp; & nbsp; 'http://www.amazon.com/Canon-50mm-1-8-Camera-Lens/dp/B00007E7JU/ref=sr_1_1?ie=UTF8&qid=1337148688&sr=8-1',
... & Nbsp; & nbsp; & nbsp; & nbsp; 'http://www.amazon.com/Canon-70-300mm-4-5-6-Lens-Cameras/dp/B0007Y794O/ref=sr_1_3?ie=UTF8&qid=1337148688&sr=8-3',
...]
>>> Affiliate_urls = [amazonify (u, tag) vir u in urls]
>>> Affiliate_urls
[
& Nbsp; & nbsp; & nbsp; 'Http://www.amazon.com/Canon-21-1MP-Frame-Digital-Camera/dp/B001G5ZTLS/ref=sr_1_1?tag=rdegges-20',
& Nbsp; & nbsp; & nbsp; 'http://www.amazon.com/Transcend-Compact-Flash-Card-400X/dp/B002WE4H8I/ref=pd_bxgy_p_img_b?tag=rdegges-20',
& Nbsp; & nbsp; & nbsp; 'http://www.amazon.com/Canon-LP-E6-Battery-Digital-Cameras/dp/B001KELVS0/ref=pd_bxgy_e_img_b?tag=rdegges-20',
& Nbsp; & nbsp; & nbsp; 'Http://www.amazon.com/Canon-50mm-1-8-Camera-Lens/dp/B00007E7JU/ref=sr_1_1?tag=rdegges-20',
& Nbsp; & nbsp; & nbsp; 'Http://www.amazon.com/Canon-70-300mm-4-5-6-Lens-Cameras/dp/B0007Y794O/ref=sr_1_3?tag=rdegges-20'
]
`` `
** NOTA **: As die URL wat jy probeer om te `` amazonify`` is ongeldig, `` amazonify`` sal terugkeer `` None``.
Deurmekaar?
Het geen idee wat ek praat? Sien Amazon se Affiliate Program.
Of ...
Winkel op Amazon!
Toetse
Wil jy die toetse te laat loop? Geen probleem:
`` `Bash
$ Git kloon git: //github.com/rdegges/python-amazonify.git
$ Cd python-amazonify
$ Luislang setup.py ontwikkel
...
$ Neut installeer r requirements.txt & nbsp; # Installeer toets afhanklikhede.
$ Nosetests
.............
-------------------------------------------------- --------------------
Hardloop 13 toetse in 0.166s
OK
`` `

Vereistes :

  • Python

Ander sagteware ontwikkelaar Randall Degges

django-sslify
django-sslify

14 Apr 15

django-clear-cache
django-clear-cache

14 Apr 15

django-ganalytics
django-ganalytics

20 Feb 15

Kommentaar te amazonify

Kommentaar nie gevind
Kommentaar te lewer
Draai op die foto!