I have a problem with pagination when using Web Scraper. The problem is that the URL in the address bar of the site I want to scrape is repeatedly redirected to the first page of the website. So when I want to scrape …. p[2-5], this results in a csv-file with four times the same contents: those of the first page.
During the scraping process, I see all pages pass by, and after each page I see the first page again, where it’s redirected to (and is apparently scraped after the redirection). Does someone have an idea how I can scrape every page with the right contents?
Thanks in advance!
Url: https://www.funda.nl/en/huur/heel-nederland/verhuurd/sorteer-afmelddatum-af/
Sitemap:
{"_id":"rented","startUrl":["https://www.funda.nl/huur/heel-nederland/verhuurd/sorteer-afmelddatum-af/p[2-5]"],"selectors":[{"id":"element","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.search-result-content","multiple":true,"delay":0},{"id":"prijs","type":"SelectorText","parentSelectors":["element"],"selector":"[data-global-id='4979865'] span.search-result-price","multiple":false,"regex":"","delay":0},{"id":"straat","type":"SelectorText","parentSelectors":["element"],"selector":"[data-search-result-item-anchor='86788864'] h2","multiple":false,"regex":"","delay":0},{"id":"postcode","type":"SelectorText","parentSelectors":["element"],"selector":"small","multiple":false,"regex":"","delay":0},{"id":"oppervlak","type":"SelectorText","parentSelectors":["element"],"selector":"li span","multiple":false,"regex":"","delay":0},{"id":"prijs2","type":"SelectorText","parentSelectors":["element"],"selector":"span.search-result-price","multiple":false,"regex":"","delay":0}]}