Skip to main content

Extract email addresses and linkedin profiles from given URL.

Project description

Extract Emails

Image

PyPI version

Extract emails and linkedins profiles from a given website

Documentation

Requirements

  • Python >= 3.10

Installation

pip install extract_emails[all]
# or
pip install extract_emails[httpx]
# or
pip install extract_emails[playwright]
playwright install chromium --with-deps

Quick Usage

As library

from pathlib import Path

from extract_emails import DefaultWorker
from extract_emails.browsers import ChromiumBrowser, HttpxBrowser
from extract_emails.models import PageData

def main():
    with ChromiumBrowser() as browser:
        worker = DefaultWorker("https://example.com, browser)
        data = worker.get_data()
        PageData.to_csv(data, Path("output.csv"))

    with HttpxBrowser() as browser:
        worker = DefaultWorker("https://example.com, browser)
        data = worker.get_data()
        PageData.to_csv(data, Path("output.csv"))

async def main():
    async with ChromiumBrowser() as browser:
        worker = DefaultWorker("https://example.com, browser)
        data = await worker.aget_data()
        await PageData.to_csv(data, Path("output.csv"))

    async with HttpxBrowser() as browser:
        worker = DefaultWorker("https://example.com, browser)
        data = await worker.aget_data()
        await PageData.to_csv(data, Path("output.csv"))

As CLI tool

$ extract-emails --help

$ extract-emails --url https://en.wikipedia.org/wiki/Email -of output.csv
$ cat output.csv
email,page,website
bob@b.org,https://en.wikipedia.org/wiki/Email,https://en.wikipedia.org/wiki/Email

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extract_emails-6.1.0.tar.gz (300.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

extract_emails-6.1.0-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file extract_emails-6.1.0.tar.gz.

File metadata

  • Download URL: extract_emails-6.1.0.tar.gz
  • Upload date:
  • Size: 300.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for extract_emails-6.1.0.tar.gz
Algorithm Hash digest
SHA256 be1afaaabe8d2a35cbd8cc32f83807fc3bf2485d43a5c82870b45f828ed9deb1
MD5 4e10e25925f34a6c27752e89983f024a
BLAKE2b-256 df382f78ac0034c86031e058c9cdf26cff46359b17630ca8de022b3261ac2be3

See more details on using hashes here.

Provenance

The following attestation bundles were made for extract_emails-6.1.0.tar.gz:

Publisher: publish.yml on dmitriiweb/extract-emails

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file extract_emails-6.1.0-py3-none-any.whl.

File metadata

  • Download URL: extract_emails-6.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for extract_emails-6.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad25be2253255723e6788b44ec337bcb49487fbcab9e7071b0c4904b55ef174
MD5 3d2fe1f0e4739f9a10abf7f16fee032a
BLAKE2b-256 8d8925a875f06ee7a2e92f0c7de7abae1c5b12a49a913a079ad8be62edf8de99

See more details on using hashes here.

Provenance

The following attestation bundles were made for extract_emails-6.1.0-py3-none-any.whl:

Publisher: publish.yml on dmitriiweb/extract-emails

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page