Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Twint
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Twint
Commits
5b152125
Commit
5b152125
authored
Aug 26, 2020
by
Christoph Thiede
Committed by
GitHub
Aug 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Config a @dataclass (#887)
parent
d7506f5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
75 deletions
+79
-75
twint/config.py
twint/config.py
+79
-75
No files found.
twint/config.py
View file @
5b152125
from
dataclasses
import
dataclass
from
typing
import
Optional
@
dataclass
class
Config
:
class
Config
:
Username
=
None
Username
:
Optional
[
str
]
=
None
User_id
=
None
User_id
:
Optional
[
str
]
=
None
Search
=
None
Search
:
Optional
[
str
]
=
None
Geo
=
""
Geo
:
str
=
""
Location
=
False
Location
:
bool
=
False
Near
=
None
Near
:
str
=
None
Lang
=
None
Lang
:
Optional
[
str
]
=
None
Output
=
None
Output
:
Optional
[
str
]
=
None
Elasticsearch
=
None
Elasticsearch
:
object
=
None
Year
=
None
Year
:
Optional
[
int
]
=
None
Since
=
None
Since
:
Optional
[
str
]
=
None
Until
=
None
Until
:
Optional
[
str
]
=
None
Email
=
Fals
e
Email
:
Optional
[
str
]
=
Non
e
Phone
=
Fals
e
Phone
:
Optional
[
str
]
=
Non
e
Verified
=
False
Verified
:
bool
=
False
Store_csv
=
False
Store_csv
:
bool
=
False
Store_json
=
False
Store_json
:
bool
=
False
Custom
=
{
"tweet"
:
None
,
"user"
:
None
,
"username"
:
None
}
Custom
=
{
"tweet"
:
None
,
"user"
:
None
,
"username"
:
None
}
Show_hashtags
=
False
Show_hashtags
:
bool
=
False
Show_cashtags
=
False
Show_cashtags
:
bool
=
False
Limit
=
None
Limit
:
Optional
[
int
]
=
None
Count
=
None
Count
:
Optional
[
int
]
=
None
Stats
=
False
Stats
:
bool
=
False
Database
=
None
Database
:
object
=
None
To
=
None
To
:
str
=
None
All
=
None
All
=
None
Debug
=
False
Debug
:
bool
=
False
Format
=
None
Format
=
None
Essid
=
""
Essid
:
str
=
""
Profile
=
False
Profile
:
bool
=
False
Followers
=
False
Followers
:
bool
=
False
Following
=
False
Following
:
bool
=
False
Favorites
=
False
Favorites
:
bool
=
False
TwitterSearch
=
False
TwitterSearch
:
bool
=
False
User_full
=
False
User_full
:
bool
=
False
Profile_full
=
False
Profile_full
:
bool
=
False
Store_object
=
False
Store_object
:
bool
=
False
Store_object_tweets_list
=
None
Store_object_tweets_list
:
list
=
None
Store_object_users_list
=
None
Store_object_users_list
:
list
=
None
Store_object_follow_list
=
None
Store_object_follow_list
:
list
=
None
Pandas_type
=
None
Pandas_type
:
type
=
None
Pandas
=
False
Pandas
:
bool
=
False
Index_tweets
=
"twinttweets"
Index_tweets
:
str
=
"twinttweets"
Index_follow
=
"twintgraph"
Index_follow
:
str
=
"twintgraph"
Index_users
=
"twintuser"
Index_users
:
str
=
"twintuser"
Retries_count
=
10
Retries_count
:
int
=
10
Resume
=
None
Resume
:
object
=
None
Images
=
False
Images
:
bool
=
False
Videos
=
False
Videos
:
bool
=
False
Media
=
False
Media
:
bool
=
False
Replies
=
False
Replies
:
bool
=
False
Pandas_clean
=
True
Pandas_clean
:
bool
=
True
Lowercase
=
True
Lowercase
:
bool
=
True
Pandas_au
=
True
Pandas_au
:
bool
=
True
Proxy_host
=
""
Proxy_host
:
str
=
""
Proxy_port
=
0
Proxy_port
:
int
=
0
Proxy_type
=
None
Proxy_type
:
object
=
None
Tor_control_port
=
9051
Tor_control_port
:
int
=
9051
Tor_control_password
=
None
Tor_control_password
:
str
=
None
Retweets
=
False
Retweets
:
bool
=
False
Query
=
None
Query
:
str
=
None
Hide_output
=
False
Hide_output
:
bool
=
False
Custom_query
=
""
Custom_query
:
str
=
""
Popular_tweets
=
False
Popular_tweets
:
bool
=
False
Skip_certs
=
False
Skip_certs
:
bool
=
False
Native_retweets
=
False
Native_retweets
:
bool
=
False
Min_likes
=
0
Min_likes
:
int
=
0
Min_retweets
=
0
Min_retweets
:
int
=
0
Min_replies
=
0
Min_replies
:
int
=
0
Links
=
None
Links
:
Optional
[
str
]
=
None
Source
=
None
Source
:
Optional
[
str
]
=
None
Members_list
=
None
Members_list
:
Optional
[
str
]
=
None
Filter_retweets
=
False
Filter_retweets
:
bool
=
False
Translate
=
False
Translate
:
bool
=
False
TranslateSrc
=
"en"
TranslateSrc
:
str
=
"en"
TranslateDest
=
"en"
TranslateDest
:
str
=
"en"
Backoff_exponent
=
3.0
Backoff_exponent
:
float
=
3.0
Min_wait_time
=
0
Min_wait_time
:
int
=
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment