Skip to content

sylva.types

sylva.types.QueryType

Bases: Enum

Used to more consistently define the type of a query

EMAIL class-attribute instance-attribute
EMAIL = 'Email'
FIRSTNAME class-attribute instance-attribute
FIRSTNAME = 'First Name'
FIRSTNAME_LASTNAME class-attribute instance-attribute
FIRSTNAME_LASTNAME = 'Divided Name'
FULLNAME class-attribute instance-attribute
FULLNAME = 'Full Name'
LASTNAME class-attribute instance-attribute
LASTNAME = 'Last Name'
PHONE class-attribute instance-attribute
PHONE = 'Phone'
TEXT class-attribute instance-attribute
TEXT = 'Simple'
USERNAME class-attribute instance-attribute
USERNAME = 'Username'

sylva.types.ResultDataFrame

ResultDataFrame()

Structured DataFrame for result handling

This object should rarely be interacted with directly, but the structure is valuable knowledge to have as returned DataFrames will be of this type.

Attributes:

Name Type Description
data DataFrame

The internal DataFrame object

Methods:

Name Description
insert_frame

Insert a new DataFrame into the collector

get_data

Returns a Pandas DataFrame of the collected results

deduplicate

Deduplicate the collected results

data instance-attribute
data = DataFrame(columns=['query', 'source_name', 'branch_recommended', 'platform_name', 'platform_url', 'username', 'email', 'phone', 'password', 'age', 'sex', 'first_name', 'middle_name', 'last_name', 'full_name', 'birth_year', 'birth_month', 'birth_day', 'street', 'unit', 'city', 'region', 'postal_code', 'country', 'raw_address', 'comment'])
__str__
__str__()
deduplicate
deduplicate()
get_data
get_data()
insert_frame
insert_frame(new_data)