title: Grabbing the information from a r.text
body: <p>I'm making a little program that will compare ranks in a game called osu. 
  I'm a beginner coder and I'm kind of stuck at the moment at where to go from here, I know/think I will convert the json data into a dict in python and then pull the specific information I need and compare the two users ranks? </p>
  
  <p>Sorry I have only been coding for about 3-4 weeks on my own time now, and I wanted to go ahead and get started on my first small little big project for me.</p>
  
  <p>Here is the git for the game/api I am using 
  <a href="https://github.com/ppy/osu-api/wiki" rel="nofollow noreferrer">https://github.com/ppy/osu-api/wiki</a></p>
  
  <p>My Current Code:</p>
  
  <pre><code>import requests
  import json
  
  
  print('Please Enter Usernames to Compare')
  
  payload = {'k': 'myapikey', 'u': input()}
  r = requests.get('https://osu.ppy.sh/api/get_user', params=payload)
  
  print(r.text)
  
  data = json.loads(r.text)
  </code></pre>
  
  <p>This is what the information looks like when I type in the username 
  that I want to grab information from:</p>
  
  <pre><code>[
    {
      "user_id": "14376563",
      "username": "kaidwards",
      "join_date": "2019-05-01 01:48:05",
      "count300": "92149",
      "count100": "21750",
      "count50": "3790",
      "playcount": "818",
      "ranked_score": "72307846",
      "total_score": "209966595",
      "pp_rank": "627326",
      "level": "31.8303",
      "pp_raw": "308.758",
      "accuracy": "89.91222381591797",
      "count_rank_ss": "0",
      "count_rank_ssh": "0",
      "count_rank_s": "6",
      "count_rank_sh": "0",
      "count_rank_a": "15",
      "country": "US",
      "total_seconds_played": "58234",
      "pp_country_rank": "97990",
      "events": [
        {
          "display_html": "&lt;img src='/images/S_small.png'/&gt; &lt;b&gt;&lt;a href='/u/14376563'&gt;kaidwards&lt;/a&gt;&lt;/b&gt; achieved rank #583 on &lt;a href='/b/1948011?m=0'&gt;Minase Inori, Hanazawa Kana, Iguchi Yuka, Hayami Saori - One Step [Hard]&lt;/a&gt; (osu!)",
          "beatmap_id": "1948011",
          "beatmapset_id": "932314",
          "date": "2019-06-29 07:52:16",
          "epicfactor": "1"
        },
        {
          "display_html": "&lt;img src='/images/B_small.png'/&gt; &lt;b&gt;&lt;a href='/u/14376563'&gt;kaidwards&lt;/a&gt;&lt;/b&gt; achieved rank #442 on &lt;a href='/b/1985907?m=0'&gt;Kuba Oms - Sex Is Good [Cherry Blossom's Hard]&lt;/a&gt; (osu!)",
          "beatmap_id": "1985907",
          "beatmapset_id": "935772",
          "date": "2019-06-29 07:40:31",
          "epicfactor": "1"
        },
        {
          "display_html": "&lt;b&gt;&lt;a href='/u/14376563'&gt;kaidwards&lt;/a&gt;&lt;/b&gt; unlocked the \"&lt;b&gt;Challenge Accepted&lt;/b&gt;\" medal!",
          "beatmap_id": "0",
          "beatmapset_id": "0",
          "date": "2019-06-29 07:08:11",
          "epicfactor": "4"
        }
      ]
    }
  ]
  </code></pre>
  
  <p>I need to grab the information from the r.text.</p>
  
  <p>The specific thing I need to grab is <code>pp_rank":"627326</code>.</p>
  
  <p>I got it.</p>