Created
April 6, 2023 07:47
-
-
Save rtldg/b5cc6f77dfd62caff0b0a3221fa5f288 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 glob | |
| import urllib.request | |
| import os | |
| plain = "" | |
| for f in glob.glob("*.bsp"): | |
| plain += str(os.path.getsize(f)) + " " + f + "\n" | |
| req = urllib.request.Request("https://check.fastdl.me/nsplain", data=plain.encode(), headers={"User-Agent": "check.py"}) | |
| resp = urllib.request.urlopen(req) | |
| print(resp.read().decode('utf-8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment