
vij
Members-
Posts
17 -
Joined
-
Last visited
Everything posted by vij
-
The script works if I turn off "Feed Reading" within Internet Explorer options - ofcourse the feed page is then displayed as source code then - but doesnt hamper what I want to do overall. Another work around to what I eventually want to achieve is using the Chilkat ActiveX component http://www.chilkatsoft.com/refdoc/xSpiderRef.html - that way I dont have to even open feed urls with IE. Doesnt change the fact that something isnt right when you try to work IE UDF with feed urls.
-
I have used IE UDF a bit before and had no problems, but it seems to cause problems with certain rss feed urls for some reason. EX: #include<IE.au3> _IECreate("http://ragecraftrc.net/extern.php?action=feed&type=atom") Gives this error C:\Program Files (x86)\AutoIt3\Include\IE.au3 (561) : ==> The requested action with this object has failed.: While Not (String($o_object.document.readyState) = "complete" Or $o_object.document.readyState = 4 Or $f_Abort) While Not (String($o_object.document.readyState^ ERROR The url opens but with some lag. Manually, the url opens quick and easy(with IECreate it opens but with a lag) - and screws up something with IE UDF I am using Internet Explorer 10 Any idea?
-
The inetGet problem - downloaded file 0 kb
vij replied to vij's topic in AutoIt General Help and Support
I tried. Doesnt work.. I think that is for a site that requires username and password to even open a page. This site doesnt need that to connect. It is open for all, but only needs user to be logged in for the extracted download link to function. -
The inetGet problem - downloaded file 0 kb
vij replied to vij's topic in AutoIt General Help and Support
Guys I have a dowload link which works only if I am logged into the site. So I login to the site(used _IE UDF) etc and then extracted the download link and then used it like this InetGet("https://ahrefs.com/site-explorer/explorer_export.php?hash=07583511eee6896bb08af2edfe3bfdf1&export_type=3&tab=backlinks&charset=utf-8&backlinks_type=not_sitewide-href-all-all-all&unique_domains=1", "D:\testers.csv", 1) But it doesnt download - gives me tester.csv with 0 kb. But when I type that url into the browser, I am able to manually download... Whats going on guys. Gius, please note you cannot use that link to manually download yourself(paid membership site) as one needs to be logged into the site to download(I am logged in using _IE stuff and still cant download) Any ideas? -
The inetGet problem - downloaded file 0 kb
vij replied to vij's topic in AutoIt General Help and Support
Oops... the file now shows as downloaded fully... maybe it just took a while... silly me Correct mikel This was a test ex...I was not able to do it for a particular dynamic url(requiring the user to be logged in) so thought this would be the same... I will get back with more info -
This gives me a file autoit-v3-setup.exe that is 0 kb What really is the problem ? Any idea InetGet("http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe", "D:\autoit-v3-setup.exe", 1) Gracias for any help
-
Thank you very much melba23 and jdelany. I was getting into a rut and you guys opened things for me And, I did this. #include <File.au3> #include <IE.au3> $oIE=_IECreate("https://ahrefs.com/index.php") $str=_IEBodyReadHTML($oIE) $answer=StringRegExp($str, "(?<=a\.src=document\.location\.protocol\+).*(?=\+Math\.floor\(new\ Date\(\)\.getTime\(\)/3600000\);)",1) ConsoleWrite($answer[0]) For those who find regexp daunting, there are regex designers. I used the one that comes with zennoposter -helps you construct those regular expressions quick
-
I dont understand. How can that get the text after "a.src=document.location.protocol+" which is //dnn506yrbagrg.cloudfront.net/pages/scripts/0014/6260.js? From function MentionsCheckForm() { $('div.alert').remove(); $('input.alert-border').removeClass('alert-border'); var Ret = true; var request = $.trim(MentionRequestObj.val()); if (request == '') { MentionRequestObj.addClass('alert-border').after('<div class="alert font90">Incorrect Request</div>'); Ret = false; } if (Ret) { ProcessObj.show(); } else { ProcessObj.hide(); } return Ret; } </script> <script type="text/javascript"> setTimeout(function(){var a=document.createElement("script"); var b=document.getElementsByTagName("script")[0]; a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/0014/6260.js?"+Math.floor(new Date().getTime()/3600000); a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1); </script></body> </html>
-
The data I am looking for is not part of a link or html tag... Its part of a java script text within the page https://ahrefs.com/index.php Need to search for the string that follows "a.src=document.location.protocol+" #include $ieObj=_IECreate("https://ahrefs.com/index.php") $str = _IEBodyReadHTML($ieObj)
-
I would like to read html body as lines and then look for a text that follows after a particular string Starting it like so: #include <IE.au3> $ieObj=_IECreate("https://ahrefs.com/index.php") $str = _IEBodyReadHTML($ieObj) Need to search for the string that follows after "a.src=document.location.protocol+" in the html body which is "//dnn506yrbagrg.cloudfront.net/pages/scripts/0014/6260.js?"+Math.floor(new Date().getTime()/3600000); Anyone already have a function that does it? Thanks
-
Nope... that url is generated dynamically. Ex - https://ahrefs.com/site-explorer/explorer_export.php?hash=07583511eee6896bb08af2edfe3bfdf1&export_type=3&tab=backlinks&charset=utf-8&backlinks_type=not_sitewide-href-all-all-all&unique_domains=1 I guess I got to be able to access that Internet Explorer save dialog to make this work. Is that not possible?
-
Hey, thanks for the reply. Yes I am using the IE UDF.... Do I have to paste the script? (contains user name password of a sensitive site within it...so asking). I am stuck at the final point where Internet Explorer asks me if I want to save the file... Thats all. Is there a way to access that Internet explorer 'save dialog/Alert' thingy you see in the pic?
-
Hey guys I am trying to login to a site and then export data using the 'export' button within the site which will basically export/save some .csv file. Now I have gone through the steps correctly and reached the point where I clicked the "export" button - but I am stuck with the Internet Explorer save dialog as shown in the pic. How do I save now. pic attached: Many Many Thanks
-
Indeed! Thanks bobQ and DaleHohm
-
Hey sorry, 5 years is a long time and I thought maybe something changed Also, in a lot of forums I know - moderators ask to refrain from making new thread if a thread already exists on the topic - so I thought this is the way to go - anyways sorry about that.
-
Is there yet something specifically for recording web actions within AutoIT - just like how the windows recording thingy ?
-
Hi Guys Just registered, installed AutoIt and need help. I have created an IE object with _IECreate and used it to parse the id/value etc and enter username and password after which I signed in. Alls well to this point. Now, I need to enter information into certain textfields after signing in and landing on a new page, however I see that the _IECreate instance I made previously cannot be reused (url has changed after signing in).. So what do I do to proceed? Many Thanks