title: Python Get Request All Pages
body: <p>I have this code that I'm working with:</p>
  
  <pre><code>import requests
  import json
  
  def getMovieTitles(substr):
  titles = []  
  data = requests.get("https://jsonmock.hackerrank.com/api/movies/search/?Title={}".format(substr))  
  response = json.loads(data.content.decode('utf-8'))    
  for page in range(0, response["total_pages"]):       
      page_response = requests.get("https://jsonmock.hackerrank.com/api/movies/search/?Title={}&amp;amp;page={}".format(substr, page + 1))    
      page_content = json.loads(page_response.content.decode('utf-8'))
      #print ('page_content', page_content, 'type(page_content)', type(page_content))    
      for item in range(0, len(page_content["data"])):           
           titles.append(str(page_content["data"][item]["Title"]))  
  titles.sort()  
  return titles
  
  print(getMovieTitles("spiderman"))
  </code></pre>
  
  <p>My issue is that it only returns the titles of the first page and not the second page. Guidance on where I'm going wrong would be appreciated</p>