mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-05 18:38:19 +01:00
fix bug with tracking of plain text urls
This commit is contained in:
parent
864ed719e7
commit
6262ec0372
1 changed files with 2 additions and 2 deletions
|
@ -235,9 +235,9 @@ async def crawl(url: str, session: aiohttp.ClientSession):
|
|||
await asyncio.gather(*[crawl(url, session) for url in sub_links])
|
||||
elif 'application/javascript' in content_type:
|
||||
LINKS_TO_TRACK.add(url)
|
||||
elif 'text/css' in content_type:
|
||||
elif 'css' in content_type:
|
||||
LINKS_TO_TRACK.add(url)
|
||||
elif 'text/plain' in content_type:
|
||||
elif 'plain' in content_type:
|
||||
LINKS_TO_TRACK.add(url)
|
||||
elif 'application/json' in content_type:
|
||||
LINKS_TO_TRACK.add(url)
|
||||
|
|
Loading…
Reference in a new issue