Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.excel.programming > #109558
| From | GS <gs@v.invalid> |
|---|---|
| Newsgroups | microsoft.public.excel.programming |
| Subject | Re: Watchdog timer issues |
| Date | 2016-11-07 12:18 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <nvqd0g$rle$1@dont-email.me> (permalink) |
| References | (3 earlier) <nv5nqu$v4k$1@dont-email.me> <nv5p4k$421$1@dont-email.me> <z56O0wFLVbGYFw+M@freenetname.co.uk> <nvd7q9$pcg$1@dont-email.me> <vAwZamImcxHYFw2t@freenetname.co.uk> |
> Garry,
> This is my day for admitting stupidity. I downloaded the revised
> ParseWebPages.zip file and opened ParseWebPages.xls. I can't see what
> it does. When I try to run AutoParse, I get "Compile Error
> Can't find project or library". Format is highlighted in
> "oTimer.StopTimer: Debug.Print "AutoParse took " &
> Format(oTimer.Elapsed, "#.000000") & " seconds.""
The project requires 'References' to:
Microsoft Internet Controls
Microsoft HTML Object Library
All the controls on 'Sheet1' work with WebBrowser1 and txtPgSrc.
You must 1st 'View Source' for the page rendered in the browser.
If the page is a 'parent' it contains links to items (child pages);
Click 'Get Item Links' to parse these links into txtPgSrc;
If you click a link in the browser:
Click 'View Source' to load the HTML into txtPgSrc;
Click 'Get Item Info' to load the search results into txtPgSrc;
The 'AutoParse' proc in m_OpenClose uses 'URLDownloadToFile()'. This
returns the entire web page source which, you will see if you compare,
is entirely different than the source returned for the rendered page in
the browser.
This example searches nsncenter.com for specific product info. It demos
how to parse the same info from a browser as well as directly from a
downloaded file. Some links have more than 1 product item listed, which
you'll see using the controls on 'Sheet1'. The same info is written to
an output file using the 'AutoParse' proc. Currently, this proc is
hard-coded to process 10 parent pages, each of which contain links to
11 child pages.
As of this reply both approaches are working as expected. Try closing
Excel and start over. Be careful to not just 'End' VBA when an error
occurs because this leaves objects loaded to memory; -make sure these
are set to 'Nothing'.
--
Garry
Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Back to microsoft.public.excel.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Watchdog timer issues Walter Briscoe <wbriscoe@nospam.demon.co.uk> - 2016-10-29 14:59 +0100
Re: Watchdog timer issues GS <gs@v.invalid> - 2016-10-29 17:50 -0400
Re: Watchdog timer issues Walter Briscoe <wbriscoe@nospam.demon.co.uk> - 2016-10-30 20:34 +0000
Re: Watchdog timer issues GS <gs@v.invalid> - 2016-10-29 17:52 -0400
Re: Watchdog timer issues Walter Briscoe <wbriscoe@nospam.demon.co.uk> - 2016-10-30 20:38 +0000
Re: Watchdog timer issues GS <gs@v.invalid> - 2016-10-30 17:14 -0400
Re: Watchdog timer issues GS <gs@v.invalid> - 2016-10-30 17:36 -0400
Re: Watchdog timer issues Walter Briscoe <wbriscoe@nospam.demon.co.uk> - 2016-11-02 09:43 +0000
Re: Watchdog timer issues GS <gs@v.invalid> - 2016-11-02 13:30 -0400
Re: Watchdog timer issues Adrian Caspersz <email@here.invalid> - 2016-11-03 17:44 +0000
Re: Watchdog timer issues GS <gs@v.invalid> - 2016-11-03 15:33 -0400
Re: Watchdog timer issues Adrian Caspersz <email@here.invalid> - 2016-11-03 20:11 +0000
Re: Watchdog timer issues GS <gs@v.invalid> - 2016-11-03 16:47 -0400
Re: Watchdog timer issues Walter Briscoe <wbriscoe@nospam.demon.co.uk> - 2016-11-06 10:37 +0000
Re: Watchdog timer issues Walter Briscoe <wbriscoe@nospam.demon.co.uk> - 2016-11-06 11:42 +0000
Re: Watchdog timer issues GS <gs@v.invalid> - 2016-11-07 12:18 -0500
Re: Watchdog timer issues Tqlebvng514 <Thlebkng152@gmail.com> - 2016-10-30 06:03 +0000
Re: Watchdog timer issues Tqlebvng514 <Thlebkng152@gmail.com> - 2016-10-30 07:03 +0000
Re: Watchdog timer issues Tqlebvng514 <Thlebkng152@gmail.com> - 2016-10-30 08:03 +0000
Re: Watchdog timer issues Tqlebvng514 <Thlebkng152@gmail.com> - 2016-10-30 11:04 +0000
Re: Watchdog timer issues Tqlebvng514 <Thlebkng152@gmail.com> - 2016-10-30 13:04 +0000
Re: Watchdog timer issues Tqlebvng514 <Thlebkng152@gmail.com> - 2016-10-30 14:03 +0000
Re: Watchdog timer issues Tqlebvng514 <Thlebkng152@gmail.com> - 2016-10-30 15:03 +0000
Re: Watchdog timer issues Tqlebvng514 <Thlebkng152@gmail.com> - 2016-10-30 16:03 +0000
Re: Watchdog timer issues giaxeoto4banh <giaxeoto4banh@gmail.com> - 2016-11-03 12:19 +0000
Re: Watchdog timer issues tinhdauhcm1 <tinhdauhcm1@gmail.com> - 2016-11-03 16:01 +0000
Re: Watchdog timer issues dailycuacuonhcm <dailycuacuonhcm@gmail.com> - 2016-11-04 01:52 +0000
csiph-web