├── README.md ├── bypass_experimental.py └── gdtot.py /README.md: -------------------------------------------------------------------------------- 1 | ## GDToT Scraper 2 | A py script to interact with gdtot. 3 | 4 | ### Sample output: 5 | 6 | ```bash 7 | { 8 | 'error': False, 9 | 'message': 'Some status message' 10 | 'title': 'Filename on website', 11 | 'size': '420 MB', 12 | 'date': '11-Feb-2023 09:40:22', 13 | 'src_url': 'https://gdtot-domain/file/fileid', 14 | 'gdrive_link': 'https://drive.google.com/open?id=driveid' 15 | } 16 | ``` 17 | -------------------------------------------------------------------------------- /bypass_experimental.py: -------------------------------------------------------------------------------- 1 | import requests 2 | from lxml import html 3 | 4 | url = 'https://new.gdtot.zip/file/1234567890' 5 | 6 | # --------------------------------------------- 7 | 8 | api = 'https://6e0.uuxd.workers.dev' 9 | api_res = requests.get(api, params={ 10 | 'url': url 11 | }).text 12 | 13 | tree = html.fromstring(api_res) 14 | tg = tree.xpath("//button[@id='dirdown']/@onclick")[0][7:-2] 15 | 16 | # --------------------------------------------- 17 | 18 | forms = tree.xpath('//form') 19 | ddl = forms[0] 20 | ddlu = ddl.xpath("./@action")[0] 21 | form_data = {} 22 | for input_element in ddl.xpath('.//input'): 23 | name = input_element.get("name") 24 | value = input_element.get("value") 25 | form_data[name] = value 26 | 27 | res = requests.post(ddlu, data=form_data).text 28 | tree = html.fromstring(res) 29 | drive = tree.xpath('//button[@onclick]/@onclick')[0][6:-2] 30 | 31 | # --------------------------------------------- 32 | 33 | print({'tg': tg, 'drive': drive}) 34 | 35 | 36 | ''' 37 | sample op: 38 | { 39 | 'tg': 'https://t.me/FilestoringmBot?start=M-y-Z-a-xyzabc-xyzabc-', 40 | 'drive': 'https://drive.google.com/u/0/uc?id=1234567890abcdefghijklm1234567890&export=download' 41 | } 42 | ''' 43 | -------------------------------------------------------------------------------- /gdtot.py: -------------------------------------------------------------------------------- 1 | import re 2 | import base64 3 | import requests 4 | from urllib.parse import urlparse, parse_qs 5 | 6 | # gdtot url 7 | URL = "" 8 | 9 | # add your crypt cookie here 10 | crypt = "" 11 | 12 | # ========================================== 13 | 14 | def parse_info(res): 15 | title = re.findall(">(.*?)<\/h5>", res.text)[0] 16 | info = re.findall('