Scrape emails across multiple pages and save to CSV
A Tampermonkey userscript to scrape email addresses from multiple pages on the Law Society's solicitor search results (https://solicitors.lawsociety.org.uk/) and export them as a CSV file.
This script automates the process of collecting email addresses from paginated search results on the Law Society website. It navigates through up to 80 pages, extracts emails from elements with a data-email attribute, removes duplicates, and provides a downloadable CSV file via a prominent button when finished. The script uses Tampermonkey's storage to persist data across page loads, ensuring no emails are lost during navigation.
a[data-email] elements across multiple pages.Set.