TrashBoat Posted December 21, 2018 Posted December 21, 2018 (edited) Im having trouble getting raw data from this api website, instead it prompts me to download the whole .json file. Can i somehow just read the webpage and just store the data without downloading it? #include <IE.au3> $src = "https://rsbuddy.com/exchange/summary.json" $oIE = _IECreate($src,0,1,1,0) $data = _IEDocReadHTML($oIE) MsgBox(0,0,$data) _IEQuit($oIE) Edited December 21, 2018 by TrashBoat
Danp2 Posted December 21, 2018 Posted December 21, 2018 Have you tried using InetRead instead? Latest Webdriver UDF Release Webdriver Wiki FAQs
TrashBoat Posted December 21, 2018 Author Posted December 21, 2018 I have not? I cant find "INetRead" in the function list.
TrashBoat Posted December 21, 2018 Author Posted December 21, 2018 Nvm ive found it the point is i dont want to download it i just want the raw data.
Danp2 Posted December 21, 2018 Posted December 21, 2018 Hence my suggestion to use INetRead. Take the example in the help file, modify it with your URL and then run it. Latest Webdriver UDF Release Webdriver Wiki FAQs
TrashBoat Posted December 21, 2018 Author Posted December 21, 2018 $data = BinaryToString(InetRead($webpage)) I accidentally passed the IE object instead of the link my bad. Thanks it worked!
Moderators JLogan3o13 Posted December 21, 2018 Moderators Posted December 21, 2018 (edited) Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team Edited December 21, 2018 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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