Home » Community » General Discussion »

Parsing infos out of item pages (in edit mode)

Search Search  
Show: Today's Messages    Show Polls    Message Navigator
Parsing infos out of item pages (in edit mode) [message #46994] Sat, 14 April 2012 17:42 UTC
avatar woody64  is currently offline woody64
Messages: 563
Registered: November 2008
Go to my shop
Senior Member
I had the problem to get a list of the latest 3d files uploaded for my items.
I managed that with some unix shell scripting code.
Maybe the starting part can be of help also for other problems.

As passing parameter it uses the downloaded csv file containing markup informations.


wget http://www.shapeways.com/login -O logon.html --keep-session-cookies --save-cookies cookies.txt --post-data 'username=woody64&password=XXXXXXX'

more +2 $1 | sed -e "s/,.*//" | sort -u | sed -e 's|"\([0-9]*\)|wget --load-cookies cookies.txt -O \1.html http://www.shapeways.com/model/edit/\1|' | sed -e 's|"|/|' | sh

In principle it stores all item pages (in edit mode, therefor the login is needed) of your store. You can then parse out informations (like latest uploaded 3d file) out of this pages.


More than 10000 items sold over SW (but still a hobby)
Minifigcustomsin3d at: Facebook Flickr Twitter
References: 3d Printing Industries, CNN, J. Burks, Ugly Duckling, M.Evans, Stop Motion Film,Computer BILD, How to Become a 3D Printing Entrepreneur, Brick History
More than 270 shop items (more then 146 already printed once) More the 500 successful Products (Items&material printed once)

Previous Topic:A New Item for Pop-Up People?
Next Topic:Guide to create your own 3d printed iPhone case



We're sorry to inform you that we no longer support this browser and can't confirm that everything will work as expected. For the best Shapeways experience, please use one of the following browsers:

Click anywhere outside this window to continue.