+ All Categories
Home > Technology > Arbitrage on Amazon: Exploiting the Textbook Trade-ins with Python

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

Date post: 20-Aug-2015
Category:
Upload: michael-brandon-lorenz
View: 1,764 times
Download: 1 times
Share this document with a friend
67
Arbitrage on Amazon Exploiting the Textbook Trade-ins with Python @blorenz Brandon Lorenz Saturday, July 27, 13
Transcript

Arbitrage on AmazonExploiting the Textbook Trade-ins with Python

@blorenz

Brandon Lorenz

Saturday, July 27, 13

Why?Saturday, July 27, 13

This.

Saturday, July 27, 13

From.

Saturday, July 27, 13

@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

Observing

Saturday, July 27, 13

Amazon Trade-Ins

Saturday, July 27, 13

Amazon Trade-Ins

Saturday, July 27, 13

Amazon Trade-Ins

Saturday, July 27, 13

Amazon Trade-Ins

Saturday, July 27, 13

Amazon Trade-Ins

- >0if

Saturday, July 27, 13

Amazon Trade-Ins

win()

passelse:

- >0:if

Saturday, July 27, 13

Analyzing

Saturday, July 27, 13

we’re here to help.

Introduction to Tools

Saturday, July 27, 13

Chrome Web Inspector

• Inspect the DOM (Document Object Model)

• Test selectors

Saturday, July 27, 13

requests 1.2.3

What it is:

Simple-to-use HTTP abstraction

How we use it:

Requesting content to parse

Saturday, July 27, 13

pyquery 1.2.4

What it is:

jQuery-like abstraction of lxml

How we use it:

Traversing and extracting content

Saturday, July 27, 13

django 1.6b1

What it is:

Full-featured Python web-framework

How we use it:

Querying and rendering the data

Saturday, July 27, 13

Finding our Entry Point

Saturday, July 27, 13

Exploring the Interface

Saturday, July 27, 13

Exploring the Interface

Saturday, July 27, 13

Exploring the Interface

Saturday, July 27, 13

Exploring the Interface

Saturday, July 27, 13

Exploring the Interface

Saturday, July 27, 13

Looking for Patterns

Saturday, July 27, 13

Looking for Patterns

Saturday, July 27, 13

Looking for Patterns

Saturday, July 27, 13

Looking for Patterns

Saturday, July 27, 13

Looking for Patterns

Saturday, July 27, 13

Looking for Patterns

Saturday, July 27, 13

Implementation

Saturday, July 27, 13

Code. Finally.

Saturday, July 27, 13

Code. Finally.

Our data representation

Saturday, July 27, 13

Code. Finally.

Hooray, requests!

(thx kenneth.)

Saturday, July 27, 13

Code. Finally.

Saturday, July 27, 13

Code. Finally.

Saturday, July 27, 13

Code. Finally.

Saturday, July 27, 13

Code. Finally.

Saturday, July 27, 13

Code. Finally.Easy, admin.

Saturday, July 27, 13

there will be problems.

Damnit.

Saturday, July 27, 13

Too slow.

Saturday, July 27, 13

Celery and RabbitMQ

Saturday, July 27, 13

Oops. Data too fast.

Saturday, July 27, 13

MySQL => MongoDB

Saturday, July 27, 13

MySQL => MongoDB

Saturday, July 27, 13

Amazon headfakes.

Saturday, July 27, 13

Huh?

Saturday, July 27, 13

Clever Girl.

Saturday, July 27, 13

Proxified Success!

Saturday, July 27, 13

Used Book Salesman.

Saturday, July 27, 13

Trickiness

Saturday, July 27, 13

Trickiness

Saturday, July 27, 13

Deceit

Saturday, July 27, 13

... More Problems omitted.

Saturday, July 27, 13

what does it look like?

Succeeding

Saturday, July 27, 13

Good deal!

Saturday, July 27, 13

Good deal!

Saturday, July 27, 13

Good deal!

Saturday, July 27, 13

Good deal!

Saturday, July 27, 13

Dashboard to Deals.

Saturday, July 27, 13

• 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

may the deals be with you.

Want the code?

Saturday, July 27, 13

On the GitHub

http://github.com/blorenz/textbook-arbitrage-redux

Saturday, July 27, 13

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 asThe Noun Project

Saturday, July 27, 13

Thanks!!!!Questions???

@blorenz

Brandon Lorenz

Saturday, July 27, 13


Recommended