Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ahapx on github.
  • I am ahapx (https://keybase.io/ahapx) on keybase.
  • I have a public key ASDKDiErTTXtkxMjT9TttgaoXcAAsgkyrnbvVV2Wn2klxgo

To claim this, I am signing this object:

import os
import hashlib
import time
import math
import sys
# Main function
def decrypt(x, y):
# Variables corresponding to string indices, counter, starting point, completion, and starting time
i = 0
@AHAPX
AHAPX / proxy.py
Last active October 11, 2017 12:52
habrproxy
import re
from http.server import HTTPServer, BaseHTTPRequestHandler
from urllib.parse import urljoin, urlparse
import requests
from lxml.html import tostring, document_fromstring
class MyProxy(BaseHTTPRequestHandler):
to_host = 'http://habrahabr.ru'