Discussion Forum: Thread 266313

 Author: Bricklanta View Messages Posted By Bricklanta
 Posted: Apr 13, 2020 19:43
 Subject: Programmatically download Part or Set Lists
 Viewed: 109 times
 Topic: Catalog
 Status:Open
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

Bricklanta (387)

Location:  USA, Georgia
Member Since Contact Type Status
Jan 21, 2019 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: Bricklanta
I'm new to the Bricklink ecosystem, including selling. I've gotten the
Store API up and running to help drive my personal inventory software and replace
the Rebrickable API I've been using up until now. Because Bricklink maintains
records for parts with sticker and for assembled minifigs this switch is critical
for me.

However I'm running into one roadblock - how to programmatically download
the full Part List and Set List. I see in the API docs that the only Lists I
can access are colors and categories. But for items I seem to need to specify
the item number.

I have manually downloaded part list and set list from the Downloads page but
I can't figure out how to do that using code.

I've noticed that the program BrickStock updates its database automatically
which makes me think it's possible to do. Is it?
 Author: ErwinNL View Messages Posted By ErwinNL
 Posted: Apr 14, 2020 03:01
 Subject: Re: Programmatically download Part or Set Lists
 Viewed: 51 times
 Topic: Catalog
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

ErwinNL (622)

Location:  Netherlands, Overijssel
Member Since Contact Type Status
Oct 27, 2019 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: TheBug
In Catalog, ssherris writes:
  I'm new to the Bricklink ecosystem, including selling. I've gotten the
Store API up and running to help drive my personal inventory software and replace
the Rebrickable API I've been using up until now. Because Bricklink maintains
records for parts with sticker and for assembled minifigs this switch is critical
for me.

However I'm running into one roadblock - how to programmatically download
the full Part List and Set List. I see in the API docs that the only Lists I
can access are colors and categories. But for items I seem to need to specify
the item number.

I have manually downloaded part list and set list from the Downloads page but
I can't figure out how to do that using code.

I've noticed that the program BrickStock updates its database automatically
which makes me think it's possible to do. Is it?

Hi, I don't think you can You can only get all sets in your own inventory
and use:

Get Subsets(Part Out): Gets a list of items that are included in the specified
item

What I have done is make a BrickLinkBrowser class that can log into the BL website
and download the required files from the download page, this gives me a full
part/set list.

Maybe I have overlooked something, I am not at that part in my project yet that
I really need it.