Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rohitaryal/cloudflare-email-decoder
Decode Cloud-Flare obfuscated emails
https://github.com/rohitaryal/cloudflare-email-decoder
cloudflare
Last synced: about 1 month ago
JSON representation
Decode Cloud-Flare obfuscated emails
- Host: GitHub
- URL: https://github.com/rohitaryal/cloudflare-email-decoder
- Owner: rohitaryal
- License: mit
- Created: 2024-06-09T03:29:54.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-13T12:46:28.000Z (7 months ago)
- Last Synced: 2024-06-13T15:25:09.126Z (7 months ago)
- Topics: cloudflare
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CF E-Mail Decoder
Cloud-flare obfuscates emails generally to prevent from web-scrapers. But there's an easy way out to decode this. (This can also encode emails if you need)## Before beginning:
- Obfuscated emails are in `data-cfemail` attribute
- Put the `decode.py` in your library path## How to use?
### For decoding:
```python
from decoder import decodedecoded_list = decode('a7c2dfc6cad7cbc2e7d389cac2')
print(decoded_list[0])
```### For encoding:
```python
from decoder import encodeencoded_list = encode('[email protected]')
print(encoded_list[0])
```## More examples:
#### Example 1:
```python
from decoder import decodedecoded_list = decode("a7c2dfc6cad7cbc2e7d389cac2","73111712001b15101233181a1a075d12105d1a1d")
for emails in decoded_list:
print(emails)
```
#### Example 2:```python
from decoder import encodeencoded_list = encode('[email protected]', '[email protected]')
for strings in encoded_list:
print(strings)
```#### Example 3:
```python
from decoder import decode, encodeplain_email = "[email protected]"
encoded_email = encode(plain_email)
decoded_email = decode(encoded_email[0])print("Testing With: " + plain_email)
print("Re-encoded: " + encoded_email[0])
print("Re-decoded: " + decoded_email[0])```
---
*In case of some issue submit it in issue section*