-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot_config.py
73 lines (66 loc) · 3.06 KB
/
bot_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
import os
currency_api_url = "http://www.nbrb.by/API/ExRates/Rates/Dynamics"
currency_dollar_id = '145'
currency_euro_id = '292'
currency_rur_id = '298'
currency_graph_days = 300
currency_graph_folder = os.path.join("features", "currency", "graphs")
currency_graph_path = os.path.join(currency_graph_folder, "graph.png")
currency_symbols = ['$', '€', 'RUR']
currency_ids = [currency_dollar_id, currency_euro_id, currency_rur_id]
buttons_currency_selection = dict(zip(currency_ids, currency_symbols))
currency_graph = "currency_graph"
button_currency_graph = {currency_graph: 'Currency Graph'}
currency_alarm = "currency_alarm"
button_currency_alarm = {currency_alarm: 'Currency Alarm'}
currency_alarm_rate_delay = 0.1
currency_alarm_rate_delay_selectors = (f'- {currency_alarm_rate_delay}',
f'+ {currency_alarm_rate_delay}')
buttons_currency_alarm_rate = dict(zip(currency_alarm_rate_delay_selectors,
currency_alarm_rate_delay_selectors))
currency_alarm_rate_button_regexp = rF'(\+|-) {currency_alarm_rate_delay}'
currency_alarm_rate_regexp = r"\d\.\d$"
cinema_url = "https://afisha.tut.by"
cinema_url_path_today = "/film"
cinema_url_path_soon = "/movie-premiere"
cinema_soon = "cinema_soon"
cinema_soon_params = {
'utm_source': cinema_url,
'utm_medium': 'films',
'utm_campaign': 'premiere_block'}
button_cinema_soon = {cinema_soon: 'Upcoming New Movies'}
football_url = "https://matchtv.ru/football"
football_ucl_path = "/ucl"
football_le_path = "/le"
football_spain_path = "/spain"
football_england_path = "/england"
football_stats_path = "/stats"
football_url_path_calendar = f"{football_stats_path}/calendar"
football_leagues = [
'UEFA Champions League',
'UEFA Europa League',
'Country Leagues']
football_country_leagues = [
football_spain_path.upper(),
football_england_path.upper()]
football_leagues_cmd = [
football_ucl_path,
football_le_path,
football_stats_path]
buttons_football_leagues = dict(zip(football_leagues_cmd, football_leagues))
buttons_football_country_leagues = dict(
zip(football_country_leagues, football_country_leagues))
instagram_link_regexp = r"https?:\/\/www\.instagram\.com\/p\/[a-zA-Z0-9\.\&\/\?\:@\-_=#]*$"
instagram_url_media_name_regexp = r"[^\/\\&\?]+\.\w{3,4}(?=([\?&].*$|$))"
instagram_save_content_service = "https://savefrom.net/"
instagram_post_content_folder = os.path.join(
"features", "instagram", "post_content")
location_url = "https://yandex.by/maps/157/minsk/search/{item}" \
"/?l=sat%2Cskl&ll={longitude}%2C{latitude}&sll={longitude}%2C{latitude}&sspn=0.01%2C0.004&z=16"
location_atm = "Банкомат"
location_folder = os.path.join("features", "location", "map")
belavia_offers = 'https://vandrouki.by/tag/belavia/'
virus_covid_data_wikipedia_site_url = 'https://en.wikipedia.org/wiki/Template:2019%E2%80%9320_coronavirus_pandemic_data'
virus_covid_data_api_url = 'https://api.statworx.com/covid'
covid_graph_folder = os.path.join("features", "virus", "graphs")
covid_graph_path = os.path.join(covid_graph_folder, "covid.png")