HTRN Posted May 16, 2019 Share Posted May 16, 2019 (edited) I have been looking, and found a few indications of what I may be trying to do but unfortunately none of the examples fit. I am doing an API call from a website. This call doesn't point me to a file but uses my query string to pull a CSV file that then downloads. While I understand how to "GO GET" a file from a web page, I don't know how I would script this in AUTOIT. Fortunately there are some demos I can share to show what I mean. Instead of opening a browser, pasting the string and getting the file. I would like to do it all from inside the script. here is a URL that "Builds"a csvhttps://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=demo&datatype=csv Is there a way to pull that csv and put it specific directory using only AUTOIT, instead of having to open a browser, pasting the url and getting the download?(Which is what I do now) Edited May 16, 2019 by HTRN Link to comment Share on other sites More sharing options...
Subz Posted May 16, 2019 Share Posted May 16, 2019 InetGet InetGet("https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=demo&datatype=csv", @ScriptDir & "\DemoData.csv") Link to comment Share on other sites More sharing options...
HTRN Posted May 17, 2019 Author Share Posted May 17, 2019 Once I saw your statement above, I realize how OVER complicated I was making it. InetGet ( "URL", "filename" [, options = 0 [, background = 0]] ) It was right there the whole time but I just didnt try it, URL, Filename..... Thank you very much and I will be LITERALLY testing every help file example as written BEFORE I come back for help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now