473,320 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

XMLhttp anyone??

Hi All

I got a great little example of how to use XMLhttp to query an external web
site (I'm wanting to do my own localised search engine by extratcing the
content and putting it into an Access DB), but it only appear to extract
from the page that you point it to, ie the main default page is extracted
when you put in something like www.hp.com.

I want the util to extract content from all of the found pages in the site I
suppose like a spider. Has anybody done this or any ideas how you get it to
go past more than the initial page??

Thanks

Robbie

Jul 19 '05 #1
4 1678
AstrA wrote:
Hi All

I got a great little example of how to use XMLhttp to query an
external web site (I'm wanting to do my own localised search engine
by extratcing the content and putting it into an Access DB), but it
only appear to extract from the page that you point it to, ie the
main default page is extracted when you put in something like
www.hp.com.

I want the util to extract content from all of the found pages in the
site I suppose like a spider. Has anybody done this or any ideas how
you get it to go past more than the initial page??

No. You need to specify the page. It would be a gross security hole to allow
anyone to simply browse through all the pages on a site.

It sounds as if you want to steal the work created by somebody else.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #2
ljb
You will have to parse the html looking for links to other pages. I worked
on a project to replicate our own intranet content onto CD's for an
un-connected LAN at another business location. We used regular expressions
to find all the links, images and other tags of interest. Then each of these
had to be handled according to the type of material. Relative links also had
to be resolved, we had to determine how many levels deep we wanted to go and
to stay on our servers only. Not a trivial task. We couldn't find anything
to do this for us and had to write our own. Tools like web copiers or wget
couldn't deal with the ActiveX control to display our AutoCAD drawings or
downloading the drawing files to CD.

LJB
Jul 19 '05 #3
Take a look at msdn magazine, they wrote an article in the last few months
on this...

Wow, it was further back then I thought
http://msdn.microsoft.com/msdnmag/is...0/spiderinnet/ -- note that
it's dot.net

I googled "asp spider" and came up with some helpful stuff there too
http://www.yart.com.au/articles/Yider.asp
"AstrA" <no*****@noemail.com> wrote in message news:3f********@127.0.0.1...
Hi All

I got a great little example of how to use XMLhttp to query an external web site (I'm wanting to do my own localised search engine by extratcing the
content and putting it into an Access DB), but it only appear to extract
from the page that you point it to, ie the main default page is extracted
when you put in something like www.hp.com.

I want the util to extract content from all of the found pages in the site I suppose like a spider. Has anybody done this or any ideas how you get it to go past more than the initial page??

Thanks

Robbie

Jul 19 '05 #4
Thanks Guys

Much appreciated.

Rgds

Rob

ljb <.> wrote in message news:Ok**************@tk2msftngp13.phx.gbl...
You will have to parse the html looking for links to other pages. I worked
on a project to replicate our own intranet content onto CD's for an
un-connected LAN at another business location. We used regular expressions
to find all the links, images and other tags of interest. Then each of these
had to be handled according to the type of material. Relative links also had
to be resolved, we had to determine how many levels deep we wanted to go and
to stay on our servers only. Not a trivial task. We couldn't find anything
to do this for us and had to write our own. Tools like web copiers or wget
couldn't deal with the ActiveX control to display our AutoCAD drawings or
downloading the drawing files to CD.

LJB


Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Irene | last post by:
Hi, I have an asp page that allows a user to search for info in a DB and add info to a DB. The search uses "ADODB.Connection" objects in the page, but the add will use a call to an isapi dll...
6
by: Krzysztof Kubiak | last post by:
I'm trying to make use of XMLHTTP object, but I've come across a problem. It seems that there is no way to create dynamic array of such XMLHTTP objects (to make several requests) and handle them...
0
by: Shivonne | last post by:
Hi all I am trying to execute a WebDAV query against a webmail Exchange inbox using XMLHttp but I keep getting an error stating "The handle is invalid" when I call the send() method. My code...
2
by: Jason Morehouse | last post by:
Hello, Anyone know if it's possible to speak with the server via xmlhttp.open while the browser is doing a post -- file upload in this case: <form enctype="multipart/form-data"...
3
by: Mark | last post by:
Hi all i was just wondering if you help. I have to send a cgi request to a company using xmlhttp request. They reply back with a line of info but when you view the internet explorer source code...
4
by: parksch2 | last post by:
When I execute the following example code from my local test environment: var xmlhttp.open("HEAD", "http://www.google.com",true); xmlhttp.onreadystatechange=function() { if...
1
by: cwl | last post by:
I want to get the content of a webpage containing plain text and write the content to a text file. My code looks like this: Set xmlhttp = CreateObject("Microsoft.XMLHTTP")...
1
by: Pupkin | last post by:
Hi, I've got a web form that needs to submit its data in a number of different directions. I was hoping to use XMLHTTP to post it to two external service providers EROI and Salesforce) So...
14
by: FMDeveloper | last post by:
Currently transitioning from a shared host to a dedicated server. The same code that works on the old server is not working on the dedicated server. It is a simple AJAX request like: <code>...
14
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
I've been searching everywhere online to find an alternative method besides using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck at all. I am using server side ASP, and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.