469,951 Members | 2,625 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,951 developers. It's quick & easy.

Example Script to parse web page links and extract data?

I'm hoping someone knows of an example script I can see to help me build
mine. I'm looking for an easy way to automate the below web site browsing
and pull the data I'm searching for.

Here's steps it needs to accomplish...

1) login to the site (windows dialog when hitting web page) *optional*

2) Choose menu link from ASP page (script shows/hides menu items depending
on mouseover) *optional*

3) Basic Search Form and enter zip code or city to pull all the data.

4) After search, table shows many links (hundreds sometimes) to the actual
data I need.
Links are this format... <a href="javascript:GetAgent('AA059')">

5) Each link opens new window with table providing required data.
The URLs that each href opens is this...
http://armls.marketlinx.com/Roster/S...sp?PubID=AA059 where the
PubID is record I need.

Table format looks like this:

<tr>

<td bgcolor="#C0C0C0" align="center">

<a href="javascript:GetAgent('MA142')">

<font face="Arial" size="2">6</font></a></td>

<td><font face="Arial" size="2">

<a href="javascript:GetAgent('MA142')">Alaze</a><br></font></td>

<td><font face="Arial" size="2">Mark <br></font></td>
<td><font face="Arial" size="2">MA142</font><br>

</td>

<td><font face="Arial" size="2">

<a href="javascript:GetBroker('COLD56')">Banker Success
Realty</a><br></font></td>

<td>COLD56</td>

<td><font face="Arial" size="2"><script LANGUAGE="javascript">

<!--

writePhoneNumber('480-999-9999');

//--></script></td>

</tr>

Sep 14 '05 #1
2 3981
"livin" <livin@@cox.net> wrote in message
news:fu1We.248754$E95.8688@fed1read01...
I'm hoping someone knows of an example script I can see to help me build
mine. I'm looking for an easy way to automate the below web site browsing
and pull the data I'm searching for.

Here's steps it needs to accomplish...

1) login to the site (windows dialog when hitting web page) *optional*

2) Choose menu link from ASP page (script shows/hides menu items depending
on mouseover) *optional*

3) Basic Search Form and enter zip code or city to pull all the data.

4) After search, table shows many links (hundreds sometimes) to the actual
data I need.
Links are this format... <a href="javascript:GetAgent('AA059')">

5) Each link opens new window with table providing required data.
The URLs that each href opens is this...
http://armls.marketlinx.com/Roster/S...sp?PubID=AA059 where the PubID is record I need.

Table format looks like this:

<tr>

<td bgcolor="#C0C0C0" align="center">

<a href="javascript:GetAgent('MA142')">

<font face="Arial" size="2">6</font></a></td>

<td><font face="Arial" size="2">

<a href="javascript:GetAgent('MA142')">Alaze</a><br></font></td>

<td><font face="Arial" size="2">Mark <br></font></td>
<td><font face="Arial" size="2">MA142</font><br>

</td>

<td><font face="Arial" size="2">

<a href="javascript:GetBroker('COLD56')">Banker Success
Realty</a><br></font></td>

<td>COLD56</td>

<td><font face="Arial" size="2"><script LANGUAGE="javascript">

<!--

writePhoneNumber('480-999-9999');

//--></script></td>

</tr>


Now you're asking a JScript newsgroup...

In the VBScript newsgroup you offered to pay for it:

"If you can accomplish this task in short order then please contact me and
we can discuss terms of the agreement."

Where do we stand?
Sep 15 '05 #2
livin wrote:
I'm hoping someone knows of an example script I can see to help me build
mine. I'm looking for an easy way to automate the below web site browsing
and pull the data I'm searching for.

Here's steps it needs to accomplish...
95% of what you want to do is server-side processing and has nothing to
do with client-side JavaScript.

1) login to the site (windows dialog when hitting web page) *optional*

2) Choose menu link from ASP page (script shows/hides menu items depending
on mouseover) *optional*

3) Basic Search Form and enter zip code or city to pull all the data.

4) After search, table shows many links (hundreds sometimes) to the actual
data I need.
Links are this format... <a href="javascript:GetAgent('AA059')">
Using javascript pseudo protocol for A elements is frowned upon, use a
real href and onclick attribute or use a different element.

5) Each link opens new window with table providing required data.
The URLs that each href opens is this...
http://armls.marketlinx.com/Roster/S...sp?PubID=AA059 where the
PubID is record I need.
If the URL is a real URL, then that is what should be in the A element's
href. Leave it up to the user if they want to open an new window or tab.

Table format looks like this:

<tr>

<td bgcolor="#C0C0C0" align="center">
Using HTML attributes for style is very out dated. Use CSS.

<a href="javascript:GetAgent('MA142')">

<font face="Arial" size="2">6</font></a></td>

<td><font face="Arial" size="2">
The font element is depreceiated, use CSS.

[...]
<td><font face="Arial" size="2"><script LANGUAGE="javascript">
Font elements are depreceiated. When specifying a font, always sepecify
a default: font-family: arial, sans-serif; .

The language attribute is depreceiated, type is required.

<!--
Using HTML comment delimiters inside script elements is not required, do
not use them.

writePhoneNumber('480-999-9999');

//--></script></td>

</tr>

[...]

The purpose of this group is to solve problems with client-side
JavaScript (ECMAScript Language) in the context of web browsers and the
WWW. Read the FAQ, particularly section 2:

<URL:http://www.jibbering.com/faq/>
--
Rob
Sep 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by chuck amadi | last post: by
7 posts views Thread by Michael Foord | last post: by
7 posts views Thread by gorkos | last post: by
2 posts views Thread by bilaribilari | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.