Call wget command in python to download error report

save_path = os.path.join("/home/shenjianlin/pdf_file",name)
               try:
                   cmd = ("sudo wget -P -N -o -c -O {} {}".format(save_path, link))
                   ref = subprocess.call(cmd, shell=True)
                   if ref != 0:
                       print ("can"t get download")
                   else:
                       print("finishing downloading {} page {} row data".format(i,j))
               except Exception as e :
                   print("download error has happend")
                   print (e)
       

wget: missing URL
Usage: wget [OPTION]. [URL].

Try `wget-- help" for more options.
can"t get download

/ bin/sh: $"350266213345212277345261225346234233-82351241265: command not found
can"t get download
"2018 Summer Tourism consumption trend Forecast": parent-child group accounts for an increase in the proportion of mainstream high-end island hotels-6 pages. Pdf
Tuniu
2018-06-22 18:01:38

Mar.30,2021

insert print in all locations just look at the running process or add the breakpoint: pycharm support is better
simple command execution is recommended to directly use os.system ()

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32011-2b141.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32011-2b141.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?