Skip to content

Instantly share code, notes, and snippets.

View robmathers's full-sized avatar

Rob Mathers robmathers

View GitHub Profile
@robmathers
robmathers / readinglisturls.py
Last active November 16, 2023 21:18
Prints out URLs of items in Safari’s Reading List
#!/usr/bin/env python
import plistlib
from shutil import copy
import subprocess
import os
from tempfile import gettempdir
import sys
import atexit
BOOKMARKS_PLIST = '~/Library/Safari/Bookmarks.plist'
@robmathers
robmathers / itunesart.py
Last active December 19, 2015 04:18
Grabs full size iTunes artwork for search parameters on the command line
#!/usr/bin/env python
import httplib
import json
import re
import sys
from urllib import quote_plus
def iTunesData(keywords, media = 'all'):
iTunesDomain = 'itunes.apple.com'
if media not in ['movie', 'podcast', 'music', 'musicVideo', 'audiobook', 'shortFilm', 'tvShow', 'software', 'ebook', 'all']: