title: Python Get Request Printing specific key and value
body: <p>I am new to HTTP requests, and I am trying to make a simple get request using <code>Python</code> and the <code>Requests Library</code> requesting <a href="https://api.github.com/repos/git/git" rel="nofollow noreferrer">GitHubs API</a>. </p>
  
  <p>I've currently tried to implement parameters for a key and value pair </p>
  
  <pre><code>import requests
  r = requests.get("https://api.github.com/repos/git/git", params= {'name':name} )
  print(name)
  </code></pre>
  
  <p>Obviously this is incorrect, as I'm getting an error which says <code>name isn't defined</code> which makes perfect sense however I don't know to print specific value's from keys I want rather the printing the entire <code>r.json()</code> response.</p>
  
  <p>I've just tried to use this:</p>
  
  <pre><code>import requests
  import json
  r = requests.get("https://api.github.com/repos/git/git")
  data = r.json()
  
  class User:
      def __init__(self, json_def):
          self.__dict__ = json.loads(json_def)
  
  user = User(data)
  print(user.size)
  </code></pre>
  
  <p>However I'm getting the error:</p>
  
  <blockquote>
    <p>TypeError: the JSON object must be str, bytes or bytearray, not 'dict'</p>
  </blockquote>