I just want to enter integrate these two commands from cmd and use them in a python script, but I’m novice in both programming and python. How I can achieve this?
cd C:\
python dumpimages.py http://google.com C:\images\
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
os.subprocessmodule.Note that
exec()will also work but it is deprecated in favour ofos.subprocess.Further to my comment above, if all you want to do is retrieve images from a webpage, use GNU
wgetwith the-Aflag: