Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How can i save a page content from a http address? (just like a Search Engine Robot)

Reply
Thread Tools

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

 
 
gonzal kamikadze
Guest
Posts: n/a
 
      04-05-2005
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


 
Reply With Quote
 
 
 
 
Elton Wang
Guest
Posts: n/a
 
      04-06-2005
Hi gonzal,

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

HTH

Elton Wang
http://www.velocityreviews.com/forums/(E-Mail Removed)


>-----Original Message-----
>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
>
>
>.
>

 
Reply With Quote
 
 
 
 
Joerg Jooss
Guest
Posts: n/a
 
      04-06-2005
gonzal kamikadze wrote:

> 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,
--
http://www.joergjooss.de
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
.Net Search Engine - Has anyone used dtSearch .Net Engine? Sasha ASP .Net 3 05-22-2007 04:20 PM
How can I save the "http response header",like=>Etag: "28094e" mike Java 2 09-19-2004 12:01 PM
Search Engine Indexing of Dynamic Content Fred Newton ASP .Net 1 08-09-2004 12:45 AM



Advertisments