fix regex for sub hash

This commit is contained in:
Il'ya (Marshal) 2021-04-24 15:16:10 +02:00
parent 9fedcf25f5
commit 9125dbc22c

View file

@ -17,8 +17,8 @@ INPUT_FILENAME = os.environ.get('INPUT_FILENAME', 'tracked_links.txt')
OUTPUT_FOLDER = os.environ.get('OUTPUT_FOLDER', 'data/')
PAGE_GENERATION_TIME_REGEX = r'<!-- page generated in .+ -->'
PAGE_API_HASH_REGEX = r'?hash=([a-z0-9]+)",'
PAGE_API_HASH_TEMPLATE = r'?hash=telegram-crawler",'
PAGE_API_HASH_REGEX = r'\?hash=[a-z0-9]+'
PAGE_API_HASH_TEMPLATE = '?hash=telegram-crawler'
# unsecure but so simple
CONNECTOR = aiohttp.TCPConnector(ssl=False)