Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  

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>

<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>

<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>

(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!


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By foolgladly
      Hello, everyone.  Long time listener, first time caller.
      Here's what I'm setting out to do:  because I can no longer reliably receive a delivery of the New York Times for my daily crossword obsession, I'm now a subscriber to their digital crossword.  I still prefer to do the puzzle on paper, and fortunately the NYT offers a scale PDF of the puzzle each day.  I'm hoping to write a script (I'm incredibly new to this) to download the file and print it every day so that I can feel like I live in a future where magic robots deliver my crossword puzzle to my printer each morning.
      The file naming scheme is simplistic and consistent.  As an example, here's today's PDF location:
      Obviously, the only thing changing here daily is the file name.  I'm hoping I can use today's date to scrape the relevant information and generate the correct filename on a daily basis.
      From there I assume it should be trivial to download the file to a specific location and automatically send it to the printer.  I've been poking around, and I have some level of confidence that I can pull off the downloading and printing parts.  I don't, however, have any idea how to get started generating the daily file name.
      Any assistance you can provide would be hugely helpful.  I know the basic answer is "learn to code, it's really helpful."  I'm willing to put some time and effort in here, but I figured this would be a great place to start.
      Thanks in advance, and happy Veteran's Day!
    • By wesleycguirra
      Hello there, I know that exists another question about it, but I'm asking again because the first one don't helped me to solve my problem
      I'm trying to patch the DSDT that I extracted from linux, for audio ALC255 that I asked for help in this post, I already dissasembled from DSDT.aml to DSDT.dsl
      then I opened the DSDT.dsl in MaciASL and try to compile and get these two errors:
      11288, 6126, syntax error, unexpected PARSEOP_ARG0 13018, 6126, syntax error, unexpected PARSEOP_NAMESEG, expecting '(' I apply the patch [syn] Remove _DSM Methods from RehabMan repository and try to compile again, then I get this error:
      13018, 6126, syntax error, unexpected PARSEOP_NAMESEG, expecting '(' the clean DSDT.dsl from linux:
    • By Zemits06
      I have come up with one problem. I want to use Automator to download a files from specific URL's which are located on mega.cz server (The same like dropbox).
      So far i configured Automator as i need, but it's dead end for me when it comes to the file download. Files are stored on Megaupload server (www.mega.cz) and i don't know which task should i use in automator so it starts downloading the file on that specific server. 
      Here in the picture You can see where I am stuck.

      In that Url https://mega.cz/#...... is a .rar type of file. 
      I Guess that it can't just understand what to download, becouse if i open that link in a browser it shows options like these. (Picture 2.)

      I have tried all logical tasks in automator after a script where it filters Url's , but so far no success. 
      Maybe someone has an idea how to download these files.
    • By gungho
      I would like to send an automated email every week conditional on whether a specific email has been received that week.
      Is this possible with the Automator tool, and if so, how can it be achieved please?
    • By dear hefbe
      I'm setting up multitple workstation with Final Cut Pro 7 and I want to make a self contained application that moves the preference file I made to the user's library. For practical puposes, I want the preference file to be contained in the application.
      I can get it done easily with a shell script :
      cp Final\ Cut\ Pro\ 7.0\ Prefs.fcset ~/Library/Preferences/Final\ Cut\ Pro\ User\ Data/Final\ Cut\ Pro\ 7.0\ Prefs.fcset but as I said, I want the pref file to be contained within the app so it doesn't get deleted or anything (it's also prettier )
      I've been using Automator in my attemps and I'd like to cotinue to do so. Xcode is excluded. The workstations are running Mac OS X 10.8.5.
      EDIT : I want other people to use this app just by double clicking it. No terminal involved.
      Thanks for your help.