forked from duckworthd/brickrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
36 lines (29 loc) · 1.52 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
=========
Brickrake
=========
Brickrake is suite of tools for spending the least amount of money to get the
LEGO parts you need from BrickLink. Its primary purpose is to automatically
tell you what to buy from which vendors to minimize your total cost. Features
include,
+ understanding Bricklink Wanted List XML and Brickstore XML parts lists
+ scraping store and pricing information directly from BrickLink
+ finding alternative colors when desired color/quantity is unavailable
+ finding the lowest cost solution possible using Gurobi, a powerful integer
linear program solver, while considering where stores ship, what their
minimum purchases are, and what their inventory is.
+ generation of BrickLink XML, one per vendor, for easy purchasing
Components
==========
Brickrake consists of 2 components: a python command line tool suite and a
javascript bookmarklet. The former does the heavy lifting -- scraping data from
bricklink, minimizing costs, and generating Wanted Lists -- while the latter
helps you fill out quantities in your browser automatically.
Usage
=====
1. Go to http://ted.mielczarek.org/code/mozilla/bookmarklet.html and copy the
contents of javascript/bricklink_choose.js into the "Input" window. Click
"Crunch" then drag the hyperlink directly under "Output" (named "Your
Bookmarklet, unless you changed it") to your bookmark toolbar.
2. Open a command line and navigate to the python/ folder in this directory.
Follow the instructions there for turning your parts list into a BrickLink
Wanted List for each vendor.