How to scrape infinite scroll page in Reddit and add limit scroll?
URL: https://www.reddit.com/r/teslamotors/new/
What I am aiming is to get the items in the firstpage but I am just getting some few items.
What I have tried is to go the developers tool and check the XHR but I am getting different approach and can't find page there.
This is what I am using to fetch the item.
response.xpath("//a[@class = 'b5szba-0 fMXvWW']/@href").getall()
Please help thank you so much