title: web-scraping error message: 'int' object has no attribute 'get'
body: <p>Hello Stack Overflow contributors!</p>
  <p>I want to scrape multiple pages of a news website; it shows an error message during this step</p>
  <pre><code> response = requests.get(page, headers = user_agent)
  </code></pre>
  <p>The error message is</p>
  <pre><code>AttributeError: 'int' object has no attribute 'get'
  </code></pre>
  <p>The lines of code are</p>
  <pre><code>user_agent = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko'}
  
  #controlling the crawl-rate
  start_time = time() 
  request = 0
  
  def scrape(url):
      urls = [url + str(x) for x in range(0,10)]
      for page in urls:
          response = requests.get(page, headers = user_agent)   
      print(page)
         
  </code></pre>
  <pre><code>print(scrape('https://nypost.com/search/China+COVID-19/page/'))
  </code></pre>
  <p>More specifically, this page and pages next to it are what I want to scrape:</p>
  <p><a href="https://nypost.com/search/China+COVID-19/page/1/?orderby=relevance" rel="nofollow noreferrer">https://nypost.com/search/China+COVID-19/page/1/?orderby=relevance</a></p>
  <p>Any helps would be greatly appreciated!!</p>