On my linux terminal, I can simply run this command to download all pdfs from a website
wget -A pdf -m -p -E -k -K -np http://site/path/
but I to automate the process using Python on Windows, I was trying this script. Although the loop runs and prints (i), the wget command does not seem to run because it does not download anything. The cell runs for just 2 seconds. If wget was actually running and downloading all content, It would have taken a lot more time.
import os
lst = ['www.falk-ross.eu']
for i in lst:
print(i)
os.system('wget -A pdf -m -p -E -k -K -np %s' % i)
Why does wget not seem to work?