mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-27 18:20:44 +01:00
fix tracking
This commit is contained in:
parent
177e6fca87
commit
1422ef0247
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@ import asyncio
|
|||
import logging
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
from asyncio.exceptions import TimeoutError
|
||||
from string import punctuation, whitespace
|
||||
|
@ -85,6 +86,10 @@ async def download_apk_and_extract_resources(session: aiohttp.ClientSession):
|
|||
async with aiofiles.open(os.path.join('app', path_to_strings), 'r') as ff:
|
||||
await f.write(await ff.read())
|
||||
|
||||
shutil.rmtree('app')
|
||||
os.remove('tool.apk')
|
||||
os.remove('app.apk')
|
||||
|
||||
|
||||
async def collect_translations_paginated_content(url: str, session: aiohttp.ClientSession) -> str:
|
||||
headers = {'X-Requested-With': 'XMLHttpRequest'}
|
||||
|
|
Loading…
Add table
Reference in a new issue