Email Scraper

Scrape emails across multiple pages and save to CSV

作者
MarwanShehata
今日安裝
0
安裝總數
1
評價
0 0 0
版本
0.2
建立日期
2025-03-27
更新日期
2025-03-27
尺寸
3.7 KB
授權條款
MIT
腳本執行於

Email Scraper

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.

Description

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.

Features

  • Scrapes emails from a[data-email] elements across multiple pages.
  • Automatically clicks the "Next" pagination link to move between pages.
  • Removes duplicate emails using a Set.
  • Saves collected emails to a CSV file with a styled "Download" button.
  • Limits scraping to a maximum of 80 pages to prevent infinite loops.
  • Includes a 6-second delay between page loads to avoid overwhelming the server.

Installation

Prerequisites

  • Tampermonkey: Install the Tampermonkey extension for your browser

Steps

  1. Install the Script:
    • Option 1: Direct Install:
      • Click this link to install directly in Tampermonkey: Raw URL