I am trying to use the search option in https://www.homecentre.com/ae/en/ and store the number of products displayed in output table for each search
import requests
from bs4 import BeautifulSoup
import pandas as pd
r = requests.get("https://www.homecentre.com/ae/en/", params=dict(
query="baby toys",
page=2
))
text = r.text
The problem is it only shows the source code of the first page and not the one searched for.
I am trying to get the source code of the page below and save 22 Products as my output