This commit is contained in:
Il'ya (Marshal) 2021-05-24 13:52:40 +02:00
parent ad9fdc5496
commit f9cddfdb47

View file

@ -24,6 +24,8 @@ HIDDEN_URLS = {
'desktop.telegram.org/changelog',
'instantview.telegram.org/rules',
'core.telegram.org/resources/cidr.txt',
}
BASE_URL_REGEX = r'telegram.org'
@ -208,6 +210,8 @@ async def crawl(url: str, session: aiohttp.ClientSession):
LINKS_TO_TRACK.add(url)
elif 'text/css' in content_type:
LINKS_TO_TRACK.add(url)
elif 'text/plain' in content_type:
LINKS_TO_TRACK.add(url)
elif 'application/json' in content_type:
LINKS_TO_TRACK.add(url)
else: