Skip to content

Instantly share code, notes, and snippets.

@drdrang
Created December 8, 2013 15:00
Show Gist options
  • Select an option

  • Save drdrang/7858623 to your computer and use it in GitHub Desktop.

Select an option

Save drdrang/7858623 to your computer and use it in GitHub Desktop.
Get the URL of the top item in a Squarespace blog.
#!/usr/bin/python
import json, urllib2
r = urllib2.urlopen('http://wrappedthoughts.com/?format=json-pretty').read()
j = json.loads(r)
print j['items'][0]['urlId']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment