title: Python: Scraping ID's from JSON
body: <p>This question is a bit of an ask, but it's been giving me a headache all day (as I am fairly new to programming).</p>
  
  <p>Basically I have huge list of ID's (named pk's) and I need to get all of them as they are surrounded by other text.</p>
  
  <p>How would I go about retrieving all of the ID's? By the way each ID looks like this:</p>
  
  <pre><code>"pk":12345678
  "pk":123456789
  </code></pre>
  
  <p>The ID is either a 8 or 9 digit number.</p>
  
  <p>Thanks a lot guys, any help would be appreciated!</p>
  
  <p><em>Editor's note: Asker did post his <a href="http://pastebin.com/CXNe2DCT" rel="nofollow noreferrer">full json data</a> in a comment to <a href="https://stackoverflow.com/a/11459592/418413">this answer</a>.</em></p>