Closed lkdmid closed 2 years ago
It's likely to be because each page in Rightmove's results starts with a featured property. Try dropping duplicates before getting the number of rows.
Derp! That was it. Thanks! There were actually more duplicates than I even realised, I guess premium listings are also repeated on multiple pages.
Solution:
results = RightmoveData(url).get_results
results.drop_duplicates(subset="url", inplace=True)
Steps to reproduce:
51
results:Use above URL in your Python, e.g:
results = RightmoveData(url).get_results
Count the rows, in this case the result is
55
(still51
via website, no cache). As you can see, there are 4 "extra" rows:len(results.index)
I've reproduced this using multiple random URLs, even in the dead of night, and always end up with a handful of "extra" rows compared to the website. Any ideas please?