Commit 5b152125 authored by Christoph Thiede's avatar Christoph Thiede Committed by GitHub

Make Config a @dataclass (#887)

parent d7506f5a
from dataclasses import dataclass
from typing import Optional
@dataclass
class Config:
Username = None
User_id = None
Search = None
Geo = ""
Location = False
Near = None
Lang = None
Output = None
Elasticsearch = None
Year = None
Since = None
Until = None
Email = False
Phone = False
Verified = False
Store_csv = False
Store_json = False
Username: Optional[str] = None
User_id: Optional[str] = None
Search: Optional[str] = None
Geo: str = ""
Location: bool = False
Near: str = None
Lang: Optional[str] = None
Output: Optional[str] = None
Elasticsearch: object = None
Year: Optional[int] = None
Since: Optional[str] = None
Until: Optional[str] = None
Email: Optional[str] = None
Phone: Optional[str] = None
Verified: bool = False
Store_csv: bool = False
Store_json: bool = False
Custom = {"tweet": None, "user": None, "username": None}
Show_hashtags = False
Show_cashtags = False
Limit = None
Count = None
Stats = False
Database = None
To = None
Show_hashtags: bool = False
Show_cashtags: bool = False
Limit: Optional[int] = None
Count: Optional[int] = None
Stats: bool = False
Database: object = None
To: str = None
All = None
Debug = False
Debug: bool = False
Format = None
Essid = ""
Profile = False
Followers = False
Following = False
Favorites = False
TwitterSearch = False
User_full = False
Profile_full = False
Store_object = False
Store_object_tweets_list = None
Store_object_users_list = None
Store_object_follow_list = None
Pandas_type = None
Pandas = False
Index_tweets = "twinttweets"
Index_follow = "twintgraph"
Index_users = "twintuser"
Retries_count = 10
Resume = None
Images = False
Videos = False
Media = False
Replies = False
Pandas_clean = True
Lowercase = True
Pandas_au = True
Proxy_host = ""
Proxy_port = 0
Proxy_type = None
Tor_control_port = 9051
Tor_control_password = None
Retweets = False
Query = None
Hide_output = False
Custom_query = ""
Popular_tweets = False
Skip_certs = False
Native_retweets = False
Min_likes = 0
Min_retweets = 0
Min_replies = 0
Links = None
Source = None
Members_list = None
Filter_retweets = False
Translate = False
TranslateSrc = "en"
TranslateDest = "en"
Backoff_exponent = 3.0
Min_wait_time = 0
Essid: str = ""
Profile: bool = False
Followers: bool = False
Following: bool = False
Favorites: bool = False
TwitterSearch: bool = False
User_full: bool = False
Profile_full: bool = False
Store_object: bool = False
Store_object_tweets_list: list = None
Store_object_users_list: list = None
Store_object_follow_list: list = None
Pandas_type: type = None
Pandas: bool = False
Index_tweets: str = "twinttweets"
Index_follow: str = "twintgraph"
Index_users: str = "twintuser"
Retries_count: int = 10
Resume: object = None
Images: bool = False
Videos: bool = False
Media: bool = False
Replies: bool = False
Pandas_clean: bool = True
Lowercase: bool = True
Pandas_au: bool = True
Proxy_host: str = ""
Proxy_port: int = 0
Proxy_type: object = None
Tor_control_port: int = 9051
Tor_control_password: str = None
Retweets: bool = False
Query: str = None
Hide_output: bool = False
Custom_query: str = ""
Popular_tweets: bool = False
Skip_certs: bool = False
Native_retweets: bool = False
Min_likes: int = 0
Min_retweets: int = 0
Min_replies: int = 0
Links: Optional[str] = None
Source: Optional[str] = None
Members_list: Optional[str] = None
Filter_retweets: bool = False
Translate: bool = False
TranslateSrc: str = "en"
TranslateDest: str = "en"
Backoff_exponent: float = 3.0
Min_wait_time: int = 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment