I am learning web scraping and trying to get the total number of sale pages located at the bottom of this page ("https://www.farfetch.com/uk/shopping/women/sale/all/items.aspx"), but am struggling to do so.
To be precise, I am trying to get the text inside the element: <div class="_7ba1d5 _a535c4 _ec791b" data-testid="page-number">1 of 532</div>
I have tried using BeautifulSoup:
Pages = pageSoup.find("div", {"data-testid" : "page-number"}).text
but with no luck.
I then tried using Selenium but I am also struggling to find the class as well. I have tried using driver.find_element(By.XPATH(''))
but with no luck as well.
Apologies if these are stupid questions but I am fairly new to web scraping.