[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Automation -- More than 'URLGet' -- Done



PureBytes Links

Trading Reference Links

Walt,

I use PERL. AFAIK it is the ultimate language for text file 
(including HTML) processing.  Full 'regular expressions', 
splitting/parsing are routine in PERL.  And it is freeware on windows 
as well.

However, please do post the VB (and C#) code.  Perhaps in future I 
can use it somewhere ...

BTW, if you want all (or most) of the UNIX utilities (grep / awk / 
sort / sed / make / cut) in DOS, surf to 'http://cygwin.com'. Cygwin 
utilities are freeware.

In the automation it will be nice to have one single script that will 
do all the data-download, data-processing, AmiBroker invoke and 
automated 'Guru' ...

Regards,
- Salil V Gangal



--- In amibroker@xxxxxxxxxxxxxxx, "hairy_mug" <WSCHWARZ@xxxx> wrote:
> Hi Salil!
> I have a class to parse text files into sections by delimiter start
> and end strings. Using this recursivly, I decode web page content.
> The down side; It's in VB or c#... if you would like the source let 
> me know and I'll post...
> 
>                             Walt 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "salil_gangal" 
<salil_gangal@xxxx> 
> wrote:
> > xxDingo,
> > 
> > Thanks.
> > 
> > The automation is done !  Tomasz was right,  Automation should be 
> > paid more attention.
> > 
> > But then again (as always) I want more !  Now I wonder if there 
is 
> > something like 'grep' or 'awk' available in WSH.  If not, it is 
not 
> a 
> > problem I can invoke batch file containing PERL within WSH and 
move 
> > forward anyways.
> > 
> > 
> 
> ///////////////////////////////////////////////////////////////////
> > WScript.Echo( "invoking IE");
> > var IE = new ActiveXObject("InternetExplorer.Application");
> > 
> > WScript.Echo( "opening file");
> > var fso = new ActiveXObject("Scripting.FileSystemObject"); 
> > file = fso.OpenTextFile( "C:\\FILE.txt", 2, true ); 
> > 
> > 
> > IE.visible = true;
> > IE.navigate("urs you want");
> > while( IE.busy ) { }
> > 
> > 
> > WScript.Echo( "getting inner HTML");
> > var innerHTML = IE.document.body.innerHTML;
> > 
> > WScript.Echo( "writing to file");
> > file.Write( innerHTML ); 
> > 
> > WScript.Echo( "closing file");
> > file.Close(); 
> > 
> > WScript.Echo( "quitting");
> > IE.quit();
> > 
> > WScript.Echo( "done");
> 
> ///////////////////////////////////////////////////////////////////
> > 
> > 
> > Regards,
> > - Salil V Gangal
> > 
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> > > Salil,
> > >  
> > > You can get to the "stuff" in the browser by using the object
> > > ie.document.body.innerHTML and then writing that to a disk file 
> on 
> > your
> > > own.
> > >  
> > > d
> > > 
> > > -----Original Message-----
> > > From: salil_gangal [mailto:salil_gangal@x...] 
> > > Sent: Sunday, August 03, 2003 11:23 AM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Re: Automation -- More than 'URLGet'
> > > 
> > > 
> > > xxDingo,
> > > 
> > > Thanks ... Will explore that.
> > > 
> > > In the meantime found out more (busy/quit).  Still what I need 
is 
> > > menu 'File Save As' and click 'Save'.
> > > 
> > > WScript.Echo( "invoking IE");
> > > var IE = new ActiveXObject("InternetExplorer.Application");
> > > IE.visible = true;
> > > IE.navigate("URL you want");
> > > while( IE.busy ) { }
> > > WScript.Echo( "quitting");
> > > IE.quit();
> > > WScript.Echo( "done");
> > > 
> > > Regards,
> > > - Salil V Gangal
> > > 
> > > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> > > > do a search on "document object model" in google.
> > > >  
> > > > d
> > > > 
> > > > -----Original Message-----
> > > > From: salil_gangal [mailto:salil_gangal@x...] 
> > > > Sent: Sunday, August 03, 2003 10:57 AM
> > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > Subject: [amibroker] Re: Automation -- More than 'URLGet'
> > > > 
> > > > 
> > > > Friends,
> > > > 
> > > > Quickly foud out the following.
> > > > 
> > > > WScript.Echo( "invoking IE");
> > > > var IE = new ActiveXObject("InternetExplorer.Application");
> > > > IE.visible = true;
> > > > IE.navigate("URL you want");
> > > > WScript.Echo( "done");
> > > > 
> > > > Now I need methods for 'File Save As' and then for 
> > clicking 'Save' 
> > > to 
> > > > finish the automation I have in mind ...
> > > > 
> > > > Regards,
> > > > - Salil V Gangal
> > > > 
> > > > --- In amibroker@xxxxxxxxxxxxxxx, Salil V Gangal 
> > > <salil_gangal@xxxx> 
> > > > wrote:
> > > > > 
> > > > > Friends,
> > > > > 
> > > > > Newletter (http://www.amibroker.com/newsletter/02-
2001.html) 
> > > > describes how to use automation to download the data at a URL 
> and 
> > > to 
> > > > process it.
> > > > > 
> > > > > However, suppose I don't want to use URLGet, what I want is 
> to 
> > > > actually invoke IE and used IE's own 'File Save As', then how 
> to 
> > do 
> > > > that sort of Automation ?
> > > > > 
> > > > > So the manual steps will be
> > > > > 
> > > > > 1) Invoke IE
> > > > > 
> > > > > 2) Get a URL
> > > > > 
> > > > > 3) Invoke menu 'File Save As'
> > > > > 
> > > > > 4) Click 'Save'
> > > > > 
> > > > > 5) Now steps similar to the ones described in newsletter 
will 
> > > follow
> > > > > 
> > > > > Any inputs ?  (I know ... this will focus on IE's 
automation 
> > > rather 
> > > > than AmiBroker's.)
> > > > > 
> > > > > Any links / documents / samples which will describe this ?
> > > > > 
> > > > > BTW, Is 'Guru' automation available yet ? I read the 
> document, 
> > I 
> > > > don't think it is ...
> > > > > 
> > > > > Regards,
> > > > > 
> > > > > - Salil V Gangal
> > > > > 
> > > > > 
> > > > > ---------------------------------
> > > > > Do you Yahoo!?
> > > > > Yahoo! SiteBuilder - Free, easy-to-use web site design 
> software
> > > > 
> > > > 
> > > > 
> > > > Yahoo! Groups Sponsor      
> > > > 
> > > > ADVERTISEMENT
> > > >  
> > > > 
> > > 
> > 
> 
<http://rd.yahoo.com/M=245454.3656312.4921743.1261774/D=egroupweb/S=17
> > > 05
> > > > 
> > > 
> > 
> 
632198:HM/A=1457554/R=0/SIG=11c6fnta2/*http://ipunda.com/clk/beibunmai
> > > su
> > > > iyuiwabei>       
> > > >  
> > > > <http://us.adserver.yahoo.com/l?
> > > M=245454.3656312.4921743.1261774/D=egrou
> > > > pmail/S=:HM/A=1457554/rand=123786671>       
> > > > 
> > > > Send BUG REPORTS to bugs@xxxx
> > > > Send SUGGESTIONS to suggest@xxxx
> > > > -----------------------------------------
> > > > Post AmiQuote-related messages ONLY to: 
> amiquote@xxxxxxxxxxxxxxx 
> > > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > > --------------------------------------------
> > > > Check group FAQ at:
> > > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > > 
> > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> > Service
> > > > <http://docs.yahoo.com/info/terms/> .
> > > 
> > > 
> > > 
> > > Yahoo! Groups Sponsor	
> > > 
> > > ADVERTISEMENT
> > >  
> > > 
> > 
> 
<http://rd.yahoo.com/M=259538.3625325.4914071.1261774/D=egroupweb/S=17
> > 05
> > > 
632198:HM/A=1695348/R=0/SIG=11u38u3s2/*http://hits.411web.com/cgi-
> > bin/hi
> > > t?page=1374-105951838331032> click here	
> > >  
> > > <http://us.adserver.yahoo.com/l?
> > M=259538.3625325.4914071.1261774/D=egrou
> > > pmail/S=:HM/A=1695348/rand=216334048> 	
> > > 
> > > Send BUG REPORTS to bugs@xxxx
> > > Send SUGGESTIONS to suggest@xxxx
> > > -----------------------------------------
> > > Post AmiQuote-related messages ONLY to: 
amiquote@xxxxxxxxxxxxxxx 
> > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > --------------------------------------------
> > > Check group FAQ at:
> > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > 
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> Service
> > > <http://docs.yahoo.com/info/terms/> .


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/