Skip to content

Instantly share code, notes, and snippets.

@robot00f
robot00f / gist:eb3cb45696769304c2ced1379885a560
Created January 16, 2023 01:02
Example: Extract emails from a text file
import re
from validate_email import validate_email
from collections import OrderedDict
from fuzzywuzzy import fuzz
# Open the input file in read mode
with open("input.txt", "r") as input_file:
# Read the contents of the file
data = input_file.read()
@robot00f
robot00f / gist:e0180c61e4d65864e1f62465571e474c
Created January 15, 2023 03:15
Example: extract email and password from a text file.
import re
# Open the text file
with open("textfile.txt", "r") as file:
# Read the contents of the file
data = file.read()
# Use regular expressions to find the email and password in the text
email_regex = r'[\w\.-]+@[\w\.-]+'
password_regex = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b|\b\S{8,}\b'
fibertel:7BD413A87FAAC5EBD57C3783F635A5314F69243AF173D94572FA6AB37E57E6A2
telecom:C06F6073897E5E857E12BE420E89D62163E5B0E73317D0A6C34DD34DEC57C1D7
personal:4A0A339B0C6D0553897752A84115ADC81C75812E1743EB2519258E5000F70DEB
clarovideo:42433980C66177645235139EF13DA83AE8E067704C54227D276BA3404791C39F
movistar:351E239B49558DD91A5418FE692951AF9C4A4E55417C90BD04B472BF7E8CF403
cablevision:69CE3366131C80870BD4BB7E32AFAA07EFADA5A4E60B0F82B076B0F265D4C7BC
telecentro:3DE1F46B9F63804B071CA448460E5E5272FDBDC9FA34A9D019031D4C51EF8C76
widevine:7F7FE475C3BBBEDAB70CF5D05AF7971522D8FFFACE88C1ACA2D1487CE8EA9532
huawei:B81C8201ACFC7639BE3BD3D7F875BA5CA76E422FA2163CEC9DACE50662B637A7
negro:F59E28F8BB6499DDF0521ED7A60AEDA00957AEB7EE605CAF17A216F7A9A26D08
Usage: HandBrakeCLI [options] -i <source> -o <destination>
General Options --------------------------------------------------------------
-h, --help Print help
--version Print version
--json Log title, progress, and version info in
JSON format
-v, --verbose[=number] Be verbose (optional argument: logging level)
-Z. --preset <string> Select preset by name (case-sensitive)