title: How to use Request with query parameter in Python?
body: <p>I would like to get data from an e-commerce website. However, I can get products but no more than 24. The site is using page index query parameter. I am sending the query parameter but still, the script gets 24 products.</p>
  <p>The code, result and the website --&gt; <a href="https://imgur.com/a/KlDZleB" rel="nofollow noreferrer"> Screenshots</a></p>
  <p>Code:</p>
  <pre><code>import requests
  import sqlite3
  from bs4 import BeautifulSoup
  
  db = sqlite3.connect('veritabani.sqlite')
  cursor = db.cursor()
  cursor.execute(&quot;CREATE TABLE products (id, product, price)&quot;)
  url = 'https://www.trendyol.com/cep-telefonu-x-c103498'
  html_text = requests.get(url,params={'q': 'pi:5'}).text
  soup = BeautifulSoup(html_text, 'lxml')
  print(soup.contents)
  products = soup.find_all(&quot;div&quot;, {&quot;class&quot;: &quot;p-card-wrppr&quot;})
  for product in products:
      product_id = product['data-id']
      product_name = product.find(&quot;div&quot;, {&quot;class&quot;: &quot;prdct-desc-cntnr-ttl-w two-line-text&quot;}).find(&quot;span&quot;,{&quot;class&quot;: &quot;prdct-desc-cntnr-name&quot;})[&quot;title&quot;]
      price = product.find_all(&quot;div&quot;, {&quot;class&quot;: &quot;prc-box-sllng&quot;})[0].text
      cursor.execute(&quot;INSERT INTO products VALUES (?,?,?)&quot;, (product_id,product_name,price))
      print(product_id,product_name,price)
  db.commit()
  db.close()
  </code></pre>