Email Scraper

Scrape emails across multiple pages and save to CSV

作者
MarwanShehata
日安装量
0
总安装量
0
评分
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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址