How can i save a page content from a http address? (just like a Search Engine Robot)

  • Thread starter gonzal kamikadze
  • Start date
G

gonzal kamikadze

Hi



I was just wondering if it is hard to write a small engine that will only
read/index a page from the internet that will be accessible only thru
http://...

(You could say it's like a search engine robot...)



Any examples?

code in ASP or ASP.NET (vb)





Regards

Gonzalez
 
E

Elton Wang

Hi gonzal,

You can use HttpWebRequest to get content of a web page
from internet.

HTH

Elton Wang
(e-mail address removed)
 
J

Joerg Jooss

gonzal said:
Hi



I was just wondering if it is hard to write a small engine that will
only read/index a page from the internet that will be accessible only
thru http://...

(You could say it's like a search engine robot...)



Any examples?

code in ASP or ASP.NET (vb)

The easiest way to do that in .NET is:

string url = "http://host/path/to/page.html";
WebClient wc = new WebClient(); // That is System.Net.WebClient
byte[] data = wc.DownloadData(url);

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top