Is there a built in function to download file?

Asked by xyz_User on 2020-07-05

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2020-07-05
Last query:
2020-07-05
Last reply:
2020-07-05
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

RaiMan (raimund-hocke) said : #2

Be aware: SikuliX 2.0.4 required!

xyz_User (userseven) said : #3

Thanks RaiMan, that solved my question.