Skip to content

Instantly share code, notes, and snippets.

from mitmproxy import tls, connection
from mitmproxy.script import concurrent
from tldextract import extract
import secrets
block_domain = set()
skip_domain = set()
modify_sni = {}
@thedtvn
thedtvn / download_pdf_drive.py
Last active March 10, 2024 13:25
download pdf from drive drive that block download
import io
import re
import json
import requests
import demjson3
from PIL import Image
import urllib.parse as parse
file = input("file url: ")
@thedtvn
thedtvn / down_pdf_onedrive.py
Last active March 10, 2024 13:26
download pdf onedrive that block download
import json
import re
import requests
from urllib.parse import urlparse, parse_qs
file = input("File url: ")
def custom_url_encode(input_string):
encoded_string = ""