Jump to content

Big Cartel URL Extractor


1 post in this topic

Recommended Posts

Hi, there's a site out there called Big Cartel that allows you to setup online stores. As orders come in, they are organized on an order page. You can then click each individual order and a new page pops up with the order details. From here you can print the order. I'd like to create a script or automator app (or work flow) that will extract the individual URL of each order on the page and then save it as a web doc or pdf so I can print them as a batch of orders. Do you think this is possible? The whole process doesn't have to be scripted, but maybe at least to the point of extracting each URL and downloading the link. I can do the batch printing by myself. The code in the HTML for the list of orders is as follows (of course with sample names):



<ul id="orders_list" class="list_view">
<li class="order item payment_paid shipped" id="order_5514565971"> <h4><a href="https://morethanconquerorsclothing.bigcartel.com/admin/orders/ZUVI-098198">John Smith</a></h4>
<span class="time tooltip" title="12/13/2013 @ 9:43 PM">6 months ago</span>
<span class="total">$5.00</span>
<span class="status">Completed</span> 
<ul class="item_actions">
<li><a href="/admin/orders/ZUVI-098198/toggle_shipping" class="shipping_toggle tooltip" title="Mark as unshipped">Toggle shipping</a></li>
</ul>
</li>

<li class="order item payment_paid shipped" id="order_4917114660"> <h4><a href="https://morethanconquerorsclothing.bigcartel.com/admin/orders/GWLO-087680">James Smith</a></h4>
<span class="time tooltip" title="10/17/2013 @ 12:20 PM">8 months ago</span>
<span class="total">$40.00</span>
<span class="status">Completed</span> 
<ul class="item_actions">
<li><a href="/admin/orders/GWLO-087680/toggle_shipping" class="shipping_toggle tooltip" title="Mark as unshipped">Toggle shipping</a></li>
</ul>
</li>

<li class="order item payment_paid shipped" id="order_4902411225"> <h4><a href="https://morethanconquerorsclothing.bigcartel.com/admin/orders/LNAT-761950">Josh Smith</a></h4>
<span class="time tooltip" title="10/15/2013 @ 10:12 PM">8 months ago</span>
<span class="total">$15.00</span>
<span class="status">Completed</span> 
<ul class="item_actions">
<li><a href="/admin/orders/LNAT-761950/toggle_shipping" class="shipping_toggle tooltip" title="Mark as unshipped">Toggle shipping</a></li>
</ul>
</li>
</ul>

(Ps the links in the code won't work, but I plan on being logged into my admin account while running this)

Thanks for any feedback you have!

Samuel

Link to comment
Share on other sites

 Share

×
×
  • Create New...