I am trying to scrape data from magicbricks.com But when i try to change the page by manually clicking on the second page at the bottom of the page, the page link remains the same. And i get the same data. How can i load the remaining pages.
For Example: This is the link of first page.
Link of second page is the same only content of page changes
import pandas as pd
from pandas import ExcelWriter
import requests,re,csv
from bs4 import BeautifulSoup
for i in range(1,5): # Number of pages plus one
url = "https://www.magicbricks.com/property-for-sale/residential-
real-estate?bedroom=1,2,3,4,5,%3E5&proptype=Multistorey-
Apartment,Builder-Floor-Apartment,Penthouse,Studio-
Apartment,Residential-House,Villa,Residential-
Plot&cityName=Mumbai".format(i);
r = requests.get(url)
soup = BeautifulSoup(r.content)
I want to scrape 500 entries of this website