Is there a built in function to download file?

Asked by xyz_User

looking to download a file from url

looking at python examples they all require
import requests

Is there any way to manually install that for sikuli.
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

no builtin support for that.

But I tested with the latest Jython 2.7.2:
after making the prerequisites import requests worked with no errors.
... but I did not make any feature tests.

The steps:
- install Jython 2.7.2 using the installer jar
- take care that pip and setup tools are selected for installation
- check that Jython works from commandline
- run the Jython pip from commandline: install requests
- tell SikuliX to use your installed Jython (extensions.txt)

make your trials

Revision history for this message
RaiMan (raimund-hocke) said :
#2

Be aware: SikuliX 2.0.4 required!

Revision history for this message
xyz_User (userseven) said :
#3

Thanks RaiMan, that solved my question.