-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_config.py
106 lines (100 loc) · 5.2 KB
/
local_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# consumer key
CONSUMER_KEY = "TWITTER_CONSUMER_KEY"
# consumer secret
CONSUMER_SECRET = "TWITTER_CONSUMER_SECRET"
# app key
ACCESS_KEY = "TWITTER_ACCESS_KEY"
# app secret
ACCESS_SECRET = "TWITTER_ACCESS_SECRET"
# Country name with their languages
langs = {'ar': 'Arabic',
'bg': 'Bulgarian',
'bn': 'Bengali',
'ca': 'Catalan',
'cs': 'Czech',
'da': 'Danish',
'de': 'German',
'el': 'Greek',
'en': 'English',
'hi': 'Hindi',
'fa': 'Persian',
'fi': 'Finnish',
'fr': 'French',
'es': 'Spanish',
'hr': 'Croatian',
'hu': 'Hungarian',
'id': 'Indonesian',
'is': 'Icelandic',
'it': 'Italian',
'iw': 'Hebrew',
'ja': 'Japanese',
'ko': 'Korean',
'kn': 'Kannada',
'lt': 'Lithuanian',
'lv': 'Latvian',
'ms': 'Malay',
'nl': 'Dutch',
'no': 'Norwegian',
'pl': 'Polish',
'pt': 'Portuguese',
'ro': 'Romanian',
'ru': 'Russian',
'sk': 'Slovak',
'sl': 'Slovenian',
'sr': 'Serbian',
'sv': 'Swedish',
'ta': 'Tamil',
'te': 'Telugu',
'th': 'Thai',
'tl': 'Filipino',
'tr': 'Turkish',
'uk': 'Ukrainian',
'ur': 'Urdu',
'vi': 'Vietnamese',
'et': 'Estonian',
'zh_CN': 'Chinese(simplified)',
'zh_TW': 'Chinese (traditional)'}
indian_langauges = ['hi', 'te', 'ta', 'kn', 'en']
tracks = ['india', "movie", 'cricket', 'sports', 'hockey', 'football', 'politics', 'modi', 'jagan', 'AP', 'capital',
'trump', 'google', 'facebook', 'hyderabad', 'bangalore', 'chennai', 'kurnool', 'dhoni', 'kohli', 'rohit',
'music', 'news', 'indian news', 'timesnow', 'indiatoday', 'america', 'usa', 'csk', 'rahul gandhi', 'technology',
'python', 'java', 'javascript', 'c++', 'republic', 'bbc', 'bbl', 'ipl', 'icc', 'bcci', 'asia', 'budget',
'pakistan', 'tech', 'trending', 'election', 'stocks', 'software', '']
# # List of countries
countries_list = ['Afghanistan', 'Albania', 'Algeria', 'Andorra', 'Antigua and Barbuda', 'Argentina',
'Argentina', 'Armenia', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas',
'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bhutan',
'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Brazil', 'Brazil',
'Brunei', 'Bulgaria', 'Burma (Myanmar)', 'Cambodia', 'Cameroon', 'Canada',
'Central African Republic', 'Chad', 'Chile', 'China', 'Colombia', 'Comoros',
'Congo', 'Costa Rica', 'Croatia', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark',
'Dominica', 'Dominican Republic', 'East Timor', 'Ecuador', 'Egypt',
'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Fiji',
'Finland', 'France', 'Gabon', 'Gambia', 'Georgia', 'Germany', 'Ghana',
'Greece', 'Grenada', 'Guatemala', 'Guinea', 'Guyana', 'Haiti', 'Honduras',
'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Israel',
'Italy', 'Ivory Coast', 'Jamaica', 'Japan', 'Jordan', 'Kazakhstan', 'Kenya', 'Kiribati',
'Korea', 'Korea', 'Kuwait', 'Kyrgyzstan', 'Laos', 'Latvia',
'Lebanon', 'Lesotho', 'Liberia', 'Libya', 'Liechtenstein', 'Lithuania',
'Luxembourg', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali',
'Malta', 'Marshall Islands', 'Mauritania', 'Mexico', 'Micronesia', 'Moldova', 'Monaco',
'Mongolia', 'Montenegro', 'Morocco', 'Nauru', 'Nepal', 'Netherlands',
'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Norway', 'Oman', 'Pakistan',
'Palau', 'Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines',
'Poland', 'Portugal', 'Qatar', 'Romania', 'Russian Federation',
'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Vincent and the Grenadines', 'Samoa',
'San Marino', 'Saudi Arabia', 'Senegal', 'Serbia', 'Singapore', 'Slovakia', 'Slovenia',
'Solomon Islands', 'Somalia', 'South Africa', 'South Sudan', 'Spain',
'Sri Lanka', 'Sudan', 'Suriname', 'Sweden', 'Switzerland', 'Syria', 'Tajikistan',
'Tanzania', 'Thailand', 'Tonga', 'Trinidad and Tobago', 'Tunisia',
'Turkey', 'Turkmenistan', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates',
'United Kingdom', 'United States', 'Uruguay', 'Uzbekistan', 'Vanuatu',
'Vatican City', 'Vietnam', 'Yemen', 'Zambia', 'Zimbabwe']
# swear or abusive words
swear_words = ["bastard", "fuck", "shit", "bitch", "idiot", "piss off", "asshole", "damn", "cunt", "bollocks", "bugger"]
# love or positive words
love_words = ["love", "thank", "happy", "bless", "affection", "adore", "beautiful", "angel", "friend"]
# list of programming languages
programing_lang_list = ["Java", "JavaScript", "PHP", "Python", "Ruby", "C++", "CPP", "Node.Js", "Erlang", "GoLang"]
# Database file name
db = "data/tweet-data.db"