sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44515
Re: [Question #660787]: How to download a file without a browser using Sikuli
Question #660787 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660787
TestMechanic proposed the following answer:
import urllib
urllib.urlretrieve("https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png", "c:\\temp\\img.png")
Notes:
1. file location is in windows format - change if needed for mac/linux
2. In IDE you may have problem to run this twice - restart IDE if needed. I guess it will be fine when starting code as script
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.