Your SlideShare is downloading. ×
0
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python

1,583

Published on

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 …

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.

Published in: Technology, Business
1 Comment
1 Like
Statistics
Notes
  • FREE Amazon Prime-- Six Months Free student Trail Link:http://amzn.to/1FGBvdl
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
1,583
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
1
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Arbitrage on Amazon Exploiting the Textbook Trade-ins with Python @blorenz Brandon Lorenz Saturday, July 27, 13
  • 2. Why? Saturday, July 27, 13
  • 3. This. Saturday, July 27, 13
  • 4. From. Saturday, July 27, 13
  • 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
  • 6. Observing Saturday, July 27, 13
  • 7. Amazon Trade-Ins http://www.amazon.com/s/ref=nb_sb_noss? url=search-alias%3Dtextbooks-tradein Saturday, July 27, 13
  • 8. Amazon Trade-Ins Saturday, July 27, 13
  • 9. Amazon Trade-Ins Saturday, July 27, 13
  • 10. Amazon Trade-Ins Saturday, July 27, 13
  • 11. Amazon Trade-Ins Saturday, July 27, 13
  • 12. Amazon Trade-Ins - >0if Saturday, July 27, 13
  • 13. Amazon Trade-Ins win() pass else: - >0:if Saturday, July 27, 13
  • 14. Analyzing Saturday, July 27, 13
  • 15. we’re here to help. Introduction to Tools Saturday, July 27, 13
  • 16. Chrome Web Inspector • Inspect the DOM (Document Object Model) • Test selectors Saturday, July 27, 13
  • 17. requests 1.2.3 What it is: Simple-to-use HTTP abstraction How we use it: Requesting content to parse Saturday, July 27, 13
  • 18. pyquery 1.2.4 What it is: jQuery-like abstraction of lxml How we use it: Traversing and extracting content Saturday, July 27, 13
  • 19. django 1.6b1 What it is: Full-featured Python web-framework How we use it: Querying and rendering the data Saturday, July 27, 13
  • 20. Finding our Entry Point Saturday, July 27, 13
  • 21. Exploring the Interface Saturday, July 27, 13
  • 22. Exploring the Interface Saturday, July 27, 13
  • 23. Exploring the Interface Saturday, July 27, 13
  • 24. Exploring the Interface Saturday, July 27, 13
  • 25. Exploring the Interface Saturday, July 27, 13
  • 26. Looking for Patterns Saturday, July 27, 13
  • 27. Looking for Patterns Saturday, July 27, 13
  • 28. Looking for Patterns Saturday, July 27, 13
  • 29. Looking for Patterns Saturday, July 27, 13
  • 30. Looking for Patterns Saturday, July 27, 13
  • 31. Looking for Patterns 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
  • 33. Implementation Saturday, July 27, 13
  • 34. Code. Finally. Saturday, July 27, 13
  • 35. Code. Finally. Our data representation Saturday, July 27, 13
  • 36. Code. Finally. Hooray, requests! (thx kenneth.) Saturday, July 27, 13
  • 37. Code. Finally. Saturday, July 27, 13
  • 38. Code. Finally. Saturday, July 27, 13
  • 39. Code. Finally. Saturday, July 27, 13
  • 40. Code. Finally. Saturday, July 27, 13
  • 41. Code. Finally. Easy, admin. Saturday, July 27, 13
  • 42. there will be problems. Damnit. Saturday, July 27, 13
  • 43. Too slow. Saturday, July 27, 13
  • 44. Celery and RabbitMQ Saturday, July 27, 13
  • 45. Oops. Data too fast. Saturday, July 27, 13
  • 46. MySQL => MongoDB Saturday, July 27, 13
  • 47. MySQL => MongoDB Saturday, July 27, 13
  • 48. Amazon headfakes. Saturday, July 27, 13
  • 49. Huh? Saturday, July 27, 13
  • 50. Clever Girl. Saturday, July 27, 13
  • 51. Proxified Success! Saturday, July 27, 13
  • 52. Used Book Salesman. Saturday, July 27, 13
  • 53. Trickiness Saturday, July 27, 13
  • 54. Trickiness Saturday, July 27, 13
  • 55. Deceit Saturday, July 27, 13
  • 56. ... More Problems omitted. Saturday, July 27, 13
  • 57. what does it look like? Succeeding Saturday, July 27, 13
  • 58. Good deal! Saturday, July 27, 13
  • 59. Good deal! Saturday, July 27, 13
  • 60. Good deal! Saturday, July 27, 13
  • 61. Good deal! Saturday, July 27, 13
  • 62. Dashboard to Deals. 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
  • 65. On the GitHub http://github.com/blorenz/textbook-arbitrage-redux 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
  • 67. Thanks!!!! Questions??? @blorenz Brandon Lorenz Saturday, July 27, 13

×