Extract email addresses and linkedin profiles from given URL.
Project description
Extract Emails
Extract emails and linkedins profiles from a given website
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be1afaaabe8d2a35cbd8cc32f83807fc3bf2485d43a5c82870b45f828ed9deb1
|
|
| MD5 |
4e10e25925f34a6c27752e89983f024a
|
|
| BLAKE2b-256 |
df382f78ac0034c86031e058c9cdf26cff46359b17630ca8de022b3261ac2be3
|
Provenance
The following attestation bundles were made for extract_emails-6.1.0.tar.gz:
Publisher:
publish.yml on dmitriiweb/extract-emails
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
extract_emails-6.1.0.tar.gz -
Subject digest:
be1afaaabe8d2a35cbd8cc32f83807fc3bf2485d43a5c82870b45f828ed9deb1 - Sigstore transparency entry: 788700648
- Sigstore integration time:
-
Permalink:
dmitriiweb/extract-emails@1f2bb4008e0231784fd78b4140780a2992f5c851 -
Branch / Tag:
refs/tags/v6.1.0 - Owner: https://github.com/dmitriiweb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1f2bb4008e0231784fd78b4140780a2992f5c851 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ad25be2253255723e6788b44ec337bcb49487fbcab9e7071b0c4904b55ef174
|
|
| MD5 |
3d2fe1f0e4739f9a10abf7f16fee032a
|
|
| BLAKE2b-256 |
8d8925a875f06ee7a2e92f0c7de7abae1c5b12a49a913a079ad8be62edf8de99
|
Provenance
The following attestation bundles were made for extract_emails-6.1.0-py3-none-any.whl:
Publisher:
publish.yml on dmitriiweb/extract-emails
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
extract_emails-6.1.0-py3-none-any.whl -
Subject digest:
8ad25be2253255723e6788b44ec337bcb49487fbcab9e7071b0c4904b55ef174 - Sigstore transparency entry: 788700654
- Sigstore integration time:
-
Permalink:
dmitriiweb/extract-emails@1f2bb4008e0231784fd78b4140780a2992f5c851 -
Branch / Tag:
refs/tags/v6.1.0 - Owner: https://github.com/dmitriiweb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1f2bb4008e0231784fd78b4140780a2992f5c851 -
Trigger Event:
push
-
Statement type: