title: Finding Untagged Posts on Tumblr(Python-3.3 Coding Assistance Requested)
body: <p>I'm <strong>extremely</strong> new to coding in general; I delved into this project in order to help my friend tag her fifteen thousand and some-odd posts on Tumblr. We've finally finished, but she wants to be sure that we haven't missed anything...
  So, I've scoured the internet, trying to find a coding solution. I came across a script found <a href="http://www.alexwlchan.net/2013/08/untagged-tumblr-posts/" rel="nofollow">here</a>, that allegedly does exactly what we need -- so I downloaded Python, and...It doesn't work.</p>
  
  <p>More specifically, when I click on the script, a black box appears for about half a second and then disappears. I haven't been able to screenshot the box to find out <em>exactly</em> what it says, but I believe it says there's a syntax error. At first, I tried with Python 2.4; it didn't seem to find the Json module the creator uses, so I switched to Python 3.3 -- the most recent version for Windows, and this is where the Syntax errors occur. </p>
  
  <pre><code>#!/usr/bin/python
  
  import urllib2
  import json
  
  hostname = "(Redacted for Privacy)"
  api_key = "(Redacted for Privacy)"
  
  url = "http://api.tumblr.com/v2/blog/" + hostname + "/posts?api_key=" + api_key
  
  def api_response(url):
  req = urllib2.urlopen(url)
  return json.loads(req.read())
  
  jsonresponse = api_response(url)
  post_count = jsonresponse["response"]["total_posts"]
  increments = (post_count + 20) / 20
  
  for i in range(0, increments):
  
    jsonresponse = api_response(url + "&amp;offset=" + str((i * 20)))
    posts = jsonresponse["response"]["posts"]
  
  for i in range(0, len(posts)):
   if not posts[i]["tags"]:
    print posts[i]["post_url"]
  
  print("All finished!")
  </code></pre>
  
  <p>So, uhm, my question is this: If this coding has a syntax error that could be fixed and then used to find the Untagged Posts on Tumblr, what might that error be?
  If this code is outdated (either via Tumblr or via Python updates), then might someone with a little free time be willing to help create a new script to find Untagged posts on Tumblr? Searching Tumblr, this seems to be a semi-common problem.</p>
  
  <p>In case it matters, Python is installed in C:\Python33. </p>
  
  <p>Thank you for your assistance.</p>