This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Query interface.""" | |
from __future__ import annotations | |
import abc | |
import sqlalchemy.orm.query | |
from crawler.constants import RunStatus | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import concurrent.futures | |
import threading | |
import boto3 | |
import smart_open | |
s3 = boto3.resource('s3') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import aiohttp | |
import aiohttp.web | |
import bs4 | |
LOCAL_DOMAIN = 'http://localhost:8080/' | |
HABR_DOMAIN = 'https://habr.com/' |