Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IntGetFile is not working
#1
Guys, I'm not being able to download this image with QM anymore. Can you please help me?

;allow single instance
if(getopt(nthreads)>1) end "The thread is already running. You can end it in the 'Running items' pane."

str sf_001 sd_001 ;;variables

;;;;download image data into variable sd
int downloaded_001
rep 60 ;;repeat max 10 minutes every 10 s until success
    IntGetFile "https://img3.weather.us/images/data/cache/regen/download_regen-en_2023_01_11_09_00_1445_396.png" sd_001
    err 10; continue ;;if error, retry after 10 s
    downloaded_001=1
    break
if(!downloaded_001) end "failed to download"

;;format filename and save to file
sf_001.timeformat("C:\tese\hihi.png")
sd_001.setfile(sf_001)
#2
IntGetFile downloads a HTML string that says "You don't have permission to access...".

Enter the URL in a web browser and you'll see the reason. Also in Developer Tools you can see status 403 Forbidden.


Forum Jump:


Users browsing this thread: 1 Guest(s)