Simple email,urls and phone number extractor
Project description
Contact Extractify
Contact Extractify is a lightweight Python package to extract email addresses, phone numbers, and URLs from raw text. It's built with simplicity and accuracy in mind, making it ideal for quick data extraction tasks or preprocessing text from websites, documents, or logs.
✨ Features
- 📧 Extract email addresses using robust regex
- 📱 Extract international and local phone numbers
- 🔗 Extract URLs (HTTP, HTTPS, and
www.formats) - 🧼 Deduplicated and normalized results
🚀 Installation
You can install the package using:
pip install contact-extractify
## 🧑💻 Usage
```python
from contact_extractor.core import extract_emails, extract_phones, extract_urls
text = """
Contact us at hello@example.com or visit https://example.com.
You can also call us at +1 (555) 123-4567.
"""
emails = extract_emails(text)
phones = extract_phones(text)
urls = extract_urls(text)
print("Emails:", emails)
print("Phones:", phones)
print("URLs:", urls)
📦 Functions
| Function | Description |
|---|---|
extract_emails() |
Extracts all valid email addresses |
extract_phones() |
Extracts phone numbers (normalized) |
extract_urls() |
Extracts valid URLs from the text |
📝 License
This project is licensed under the MIT License.
📫 Contact
Maintained by Gaurav Rawal – gauravrawal2001@gmail.com
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 phone_email_extractor-0.1.0.tar.gz.
File metadata
- Download URL: phone_email_extractor-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1281c47f5fec76bbbac3a5024b3036f6a582b2b838ccee993a9165ed42382bf
|
|
| MD5 |
1541912b67e53906c960d975dfd0f6b2
|
|
| BLAKE2b-256 |
f9f443358b40b2e5a237777c8153e84e0c2709e647f5c29f63c4eb8fe216b599
|
File details
Details for the file phone_email_extractor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: phone_email_extractor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a9c72baddcf71c435347366f619bc0e517e94e47bfe6752654c727cb648cf76
|
|
| MD5 |
c635519f34bebed011c764e4bf20a729
|
|
| BLAKE2b-256 |
f3a784995d2db8db4fdd7b4bebcac52beb095477e86a9e493f3ec4c34e5445fc
|