Skip to content

Instantly share code, notes, and snippets.

View bersegosx's full-sized avatar

Anton Zlygostev bersegosx

  • Warsaw
View GitHub Profile
import asyncio
import io
import imghdr
from PIL import Image
from aiohttp import ClientSession
import motor.motor_asyncio
client = motor.motor_asyncio.AsyncIOMotorClient()
@bersegosx
bersegosx / habr_proxy_tm.py
Last active May 26, 2019 13:46
Habr_proxy
import aiohttp
from aiohttp import web
import re
from urllib.parse import urljoin
from html import unescape
from lxml import etree
from lxml.html import tostring as etree_tostring