Answers.Body: <p>I believe that many AFOL user groups had previously been able to buy in bulk from LEGO, but I don't know if that's still an option with the release of pick-a-brick - however as Joubarc points out there are often limits on the number of different elements, as well as a group limit on the number of bricks. Couple that with the fact that the process often takes months to deliver, and it's not an easy option.</p>
  
  <p>Another option would be to take it offline: the LEGO catalogue often lists Pick-a-Brick elements and has a postal order form, so you could format that up in your spreadsheet application of choice and mail it in.</p>
  
  <p>Doing a quick snoop around the network traffic when adding items from Pick-a-Brick shows that currently it uses a fairly simple post to submit the details to the basket:</p>
  
  <pre><code>ba     0
  bricks 4239601,1          &lt;- ElementId,quantity
  cat    UK
  id     4239601,1          &lt;- ElementId,quantity
  sid    0.4886243118128015
  </code></pre>
  
  <p>So something could possibly be created, but as Joubarc points out, there's no guarantee that the site would continue this way.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2011-11-02T08:52:29.710Z
Answers.Text: Cubs do indeed have this option, but there are conditions which limit its usage. In particular, there may be a limit in terms of number of different elements, so if you have to compromise between all members of the club to select the elements you'll order, it means most of the time you may not be able to get exactly what you want. And of course, while the club may be able to send a csv file (I'm not even sure about that), they'll have their own internal process to deal with. Ha, and it takes months, too, so it's a very diffrent route from the PaB.
Answers.UserDisplayName: Joubarc
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2011-11-02T11:53:30.097Z
Answers.Text: +1 for the postal form idea; I hadn't even thought of that.  Another limitation with the BulkLUG route is the restriction that you aren't to resell the parts.
Answers.UserDisplayName: retracile
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2011-11-02T08:24:13.817Z
Answers.LastActivityDate: 2011-11-02T09:14:48.923Z
Answers.LastEditDate: 2011-11-02T09:14:48.923Z
Answers.UserDisplayName: Zhaph - Ben Duguid
Body: <p>Is there a way to automate the process of ordering from Lego's online Pick-a-Brick?  I'd like to be able to go from a .csv with part IDs to a filled cart on their site, or even all the way through to a placed order.  Are there any options short of using a web testing/automation framework to drive the site?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2011-11-02T05:07:05.197Z
Comments.Text: Considering LEGO tends to change the design of their web pages from time to time, I'm sure even a web automation will prove difficult, but I don't see any other way.
Comments.UserDisplayName: Joubarc
Tags: <shopping><software><pick-a-brick>
Title: How can I automate orders from Lego Pick-a-Brick?
UserDisplayName: retracile
ThreadText: # How can I automate orders from Lego Pick-a-Brick?
  
  (Asked by: username_0 on 2011-11-02)
  
  Is there a way to automate the process of ordering from Lego's online Pick-a-Brick? I'd like to be able to go from a .csv with part IDs to a filled cart on their site, or even all the way through to a placed order. Are there any options short of using a web testing/automation framework to drive the site?
  
  **Tags:** shopping, software, pick-a-brick
  > **Comments:**
  > **username_1**: Considering LEGO tends to change the design of their web pages from time to time, I'm sure even a web automation will prove difficult, but I don't see any other way.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2011-11-02. Score: 11 | Accepted answer
  
  I believe that many AFOL user groups had previously been able to buy in bulk from LEGO, but I don't know if that's still an option with the release of pick-a-brick - however as Joubarc points out there are often limits on the number of different elements, as well as a group limit on the number of bricks. Couple that with the fact that the process often takes months to deliver, and it's not an easy option.
  Another option would be to take it offline: the LEGO catalogue often lists Pick-a-Brick elements and has a postal order form, so you could format that up in your spreadsheet application of choice and mail it in.
  Doing a quick snoop around the network traffic when adding items from Pick-a-Brick shows that currently it uses a fairly simple post to submit the details to the basket:
  ba     0
  bricks 4239601,1          <- ElementId,quantity
  cat    UK
  id     4239601,1          <- ElementId,quantity
  sid    0.4886243118128015
  
  So something could possibly be created, but as Joubarc points out, there's no guarantee that the site would continue this way.
  
  > **Comments:**
  > **username_1**: Cubs do indeed have this option, but there are conditions which limit its usage. In particular, there may be a limit in terms of number of different elements, so if you have to compromise between all members of the club to select the elements you'll order, it means most of the time you may not be able to get exactly what you want. And of course, while the club may be able to send a csv file (I'm not even sure about that), they'll have their own internal process to deal with. Ha, and it takes months, too, so it's a very diffrent route from the PaB.  
  > **username_0**: +1 for the postal form idea; I hadn't even thought of that.  Another limitation with the BulkLUG route is the restriction that you aren't to resell the parts.  
  
  ---
  
  