how to retrieve data from given websites

Z

zEE

let say u have a website
string url="http://www.hotmail.com";

now u can use MSXML dll

XMLHTTP ObjHttp = new XMLHTTP();
//Connecting to site
ObjHttp.open("post",url,false,null, null);
//Sending parameters (may be u dont required it)
ObjHttp.send("case="+TicketNum");

if (ObjHttp.status.ToString() == "200") //successfull response
{
return ObjHttp.responseText;
}

"ObjHttp.responseText" this will be string having html of the page
u need to parse it using Regex to get ur desired data

Hope it will help u
 
G

Guest

Yoshitha,
Check the documentation for the WebClient class. This is a simplified
wrapper over HttpWebRequest / Response. It has four basic methods. There's
plenty of good sample code in the MSDN documentation.
Peter
 
Y

Yoshitha

Hi

I want to Extracet(retrieve) data from some of websites and the retrieved
data has to be saved in excel or.csv files.


I need to develop this in ASP.net(using C#.net Vs 2003).

Can any one tell me the idea of how to get data from websites?

Thanx in advance
Yoshitha
 
R

Ray Booysen

mmmm screen scraping. Do you have permission to use the information
you'll be taking from this site?
 
E

Edwin Knoppert

in VB's myobject you can find urldownloadtofile
Must be present in c# as well imo search..
It's the easiest way.
 
Y

Yoshitha

hi
is it possible to retrieve data from other websites uing XTerm, XPath
Technology of ASP.net with regular Expressions.
 
Y

Yoshitha

I need to get contact details of doctors, dentisit and so on from a site.
and the gathered details has to be stored in .xle or .csv file.
i need to gather data from this site
http://www.mydr.com.au/hcp/hcp.asp?mode=Pharmacist
http://www.mydr.com.au/hcp/hcp.asp?mode=Specialist
like wise i have some more urls.
the above links gives you teh search page in that we need to enter some
names for eg(AD) in surname text box and click on search button then it will
display some hyperlnks and when we click on hyperlink it will give contact
details.
and i need to get those details and store them into .xls or csv files.
here i used AD but we need to search with all posible combinations from A to
Z
and need to retrieve contact details of doctors etc.

that is my requirement
i need to achieve this using any method.

one more thing, for exmple if the page contains contact details directly of
all teh doctors and if that page is having paging(page 1,2...) if i want to
get data from all these pages how can be this achieved can you tell me.

REgards
Yoshitha
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top