Skip to content

Instantly share code, notes, and snippets.

@rtldg
Created April 6, 2023 07:47
Show Gist options
  • Select an option

  • Save rtldg/b5cc6f77dfd62caff0b0a3221fa5f288 to your computer and use it in GitHub Desktop.

Select an option

Save rtldg/b5cc6f77dfd62caff0b0a3221fa5f288 to your computer and use it in GitHub Desktop.
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