I need to download files from fki IAM Handwriting Database to a online notebook using Linux CLI or Python.
In order to download a file, the user needs to login before the download can begin.
Previously, it was possible to download the file as follows:
wget --user username --pass password https://fki.tic.heia-fr.ch/DBs/iamDB/data/words.tgz
In the updated version wget does not work. I also tried the following code:
url = 'https://fki.tic.heia-fr.ch/login'
values = {'username': 'user',
'password': 'pass'}
r = requests.post(url, data=values)
It returns Bad Requests [400].
P.S.: Please do not suggest downloading the database onto the local machine and uploading it to the server. I do not have access to highspeed download or upload.