Email Scraper

Scrape emails across multiple pages and save to CSV

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
MarwanShehata
今日安裝
0
安裝總數
4
評價
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