Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import multiple URLs to Pocket (or Instapaper)

I'm trying to import all my old starred items from Google Reader into Pocket. I have the JSON file and I've used grep to convert that to a simple text file listing all the URLs (thanks to PaulProgrammer here: Regex to extract all Starred Items URLs from Google Reader JSON file).

The problem now is - how do I get that into Pocket (or Instapaper)?

Does anyone have any ideas to do any of the below?

  1. Import directly from the Google Reader JSON (this was the first thing I searched for and came up with several flawed partial solutions)

  2. You can add URLs by e-mail, but only one at a time. Maybe I can batch up a couple thousand e-mails through GMail somehow?

  3. Any other ideas?

Here's a sample of my URL text file:

http://cheezburger.com/51746049
http://dilbert.com/strips/comic/2013-05-24/
http://lifehacker.com/not-just-another-notes-app-why-you-should-use-google-k-509256637
http://digital-photography-school.com/save-time-with-batch-exposure-blending
http://mgoblog.com/content/what-big-ten-hockey-schedule-looks
http://digital-photography-school.com/how-to-photograph-star-trails
like image 742
Patrick Avatar asked Sep 06 '25 17:09

Patrick


1 Answers

You can use the add action from the Pocket API to add many links at once.

Sending an encoded JSON array like this should work:

[
    {
        "action" : "add",
        "url" : "http://cheezburger.com/51746049"
    },
    {
        "action" : "add",
        "url" : "http://dilbert.com/strips/comic/2013-05-24/"
    }
    // truncated for brevity
]
like image 135
Nick McCurdy Avatar answered Sep 08 '25 10:09

Nick McCurdy