import os SILENT = True SLEEP_SECOND = 2 BASE_URL = 'https://radar.lv' # user_agent = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html' user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0' headers = {'User-Agent': user_agent, 'Referer': BASE_URL} PAGE_LAST_CLASS = {'class': 'pager-last last'} NODE_DIV = {'class': 'node'} NODE_TITLE = {'class': 'title'} MP3_TABLE = {'id': 'attachments'} FILE_EXTENSION = 'mp3' TOTAL_MIRROR = 9 MIRRORS = ['mirrorFile{}'.format(i) for i in range(TOTAL_MIRROR)] DATA_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + '/data/' BASE_LINKS = { '1. FM Достоевский': BASE_URL + '/fmd', '2. Музпросвет': BASE_URL + '/muzprosvet', '3. Экзотика': BASE_URL + '/exotica', '4. Хождение': BASE_URL + '/trip', '5. Тёмная сторона Луны': BASE_URL + '/dmoon', '6. Past Perfect Tense': BASE_URL + '/ppt', '7. Другая поп-музыка': BASE_URL + '/another_pop', '8. 49 минут джаза': BASE_URL + '/jazz49', '9. Seance': BASE_URL + '/seance', '10. Пакгауз': BASE_URL + '/taxonomy/term/35', '11. Модель для сборки': BASE_URL + '/mds', }