fork(1) download
  1. import urlparse
  2. path = urlparse.urlparse('/path/to/file?_subject_ID_SOMEOTHERSTRING').path
  3. import os.path
  4. print(os.path.split(path)[1]) # => file
  5. print(os.path.split(path)[0]) # => /path/to
Success #stdin #stdout 0.01s 9080KB
stdin
Standard input is empty
stdout
file
/path/to