Hi,
I am trying to scrape various details about local businesses (name, phone, email & location). However I keep getting the incorrect name associated with the wrong phone number. For Example:
The results will show:
Business "4 Future Building Pty Ltd" 7 times. All with the same href: https://www.yellowpages.com.au/nsw/copacabana/4-future-building-pty-ltd-13812143-listing.html?referredBy=www.yellowpages.com.au&context=businessTypeSearch
But with 7 different phone numbers and only one phone number will be correct.
It will show the correct number (02) 4382 4145 and 6 other numbers that belong to other records.
e.g. The number for "All Roofing & Maintenance" will show and that record will be left out entirely.
https://www.yellowpages.com.au/nsw/kincumber/all-roofing-maintenance-12167820-listing.html
Can anyone offer some assistance?
Thanks in advance.
Sitemap:
{"_id":"builders_central_coast","startUrl":["https://www.yellowpages.com.au/search/listings?clue=Builders+%26+Building+Contractors&locationClue=Central+Coast%2C+NSW&pageNumber=1&referredBy=www.yellowpages.com.au&&eventType=pagination"],"selectors":[{"id":"name","type":"SelectorLink","parentSelectors":["_root","pagination"],"selector":".media-object.clickable-listing h2 a, .first-cell .body a.listing-name","multiple":true,"delay":0},{"id":"address","type":"SelectorText","parentSelectors":["name"],"selector":".listing-heading a","multiple":false,"regex":"","delay":0},{"id":"phone","type":"SelectorText","parentSelectors":["name"],"selector":".click-to-call .text div","multiple":true,"regex":"","delay":0},{"id":"email","type":"SelectorText","parentSelectors":["name"],"selector":"a.contact.contact-email","multiple":false,"regex":"","delay":0},{"id":"website","type":"SelectorText","parentSelectors":["name"],"selector":"span.icon-website","multiple":false,"regex":"","delay":0},{"id":"pagination","type":"SelectorLink","parentSelectors":["_root","pagination"],"selector":"a.pagination","multiple":true,"delay":0}]}