mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-01 12:42:07 +01:00
temp remove random shit
This commit is contained in:
parent
3eb636e8e3
commit
feab4bde95
1 changed files with 4 additions and 0 deletions
|
@ -335,6 +335,10 @@ class RetryError(Exception):
|
||||||
|
|
||||||
async def crawl(url: str, session: aiohttp.ClientSession):
|
async def crawl(url: str, session: aiohttp.ClientSession):
|
||||||
try:
|
try:
|
||||||
|
# f*ck this shit. I believe it's temp solution
|
||||||
|
if 'css/telegram.css' in url:
|
||||||
|
return
|
||||||
|
|
||||||
logger.info(f'Process {url}')
|
logger.info(f'Process {url}')
|
||||||
async with session.get(f'{PROTOCOL}{url}', allow_redirects=False, timeout=TIMEOUT) as response:
|
async with session.get(f'{PROTOCOL}{url}', allow_redirects=False, timeout=TIMEOUT) as response:
|
||||||
if response.status // 100 == 5:
|
if response.status // 100 == 5:
|
||||||
|
|
Loading…
Reference in a new issue