download files using python requests code example
Example 1: upload file requests python
import requests
url='http://nesssi.cacr.caltech.edu/cgi-bin/getmulticonedb_release2.cgi/post'
files={'files': open('file.txt','rb')}
values={'upload_file' : 'file.txt' , 'DB':'photcat' , 'OUT':'csv' , 'SHORT':'short'}
r=requests.post(url,files=files,data=values)
Example 2: requests save file python
with open(r'c:\dl\FrameRecentSessions.csv','wb') as f:
f.write(r.content)