Amazon introduced the ability to trade-in previously owned textbooks in exchange for Amazon gift cards. With an opportunity to "buy low-sell high", Brandon leveraged Python to automate many facets of simple workflows and operate at scale. This talk focuses how to enslave the Machine and put it to work for you with a full teardown of Brandon's automated Amazon adventure for fun and profit.
5. @blorenz
Brandon Lorenz
★ Pythonista of two years
★ Djangonauting since 1.3
★ Web devving since `96
★ SSI => Perl => PHP => Python
Hi, friends.
You should follow me
[now!] on Twitter.
Why?
High tweet rate of
Python relevance!
Saturday, July 27, 13
32. Looking for Patterns
URL Pattern!
http://www.amazon.com/gp/offer-listing/
SOME_CHANGING_VALUE/ref=dp_olp_used?
ie=UTF8&condition=used
The value of interest represents the
Amazon product code.
We can programmatically create valid
URLs based off the product code.
Saturday, July 27, 13
63. • Purchased and processed over $3,085.51 in
books.
• Redeemed over $2,870.33 in purchases.
• $100 out-of-pocket initial investment.
• ~3-4 month activity window.
• Maintained and scraped 1.6 million books/day.
The Breakdown
Saturday, July 27, 13
64. may the deals be with you.
Want the code?
Saturday, July 27, 13
66. John Caserta, from The Noun Project
compose, arrange, from The Noun Project
Michael Rowe, from
The Noun Project
Brexebrex, from The Noun Project
Image Attribution
Attribute as
The Noun Project
Saturday, July 27, 13