You're in luck!
It turns out that I wrote some rough code yesterday for a side project. You
should be able to modify it to get what you want.
The code basically fires a 10 digit telephone number along with a url
against the website and intercepts the response stream to find the address
matching the phone number. So you can replace the uri with your own uri and
skip the if statement part. I think I got the original code from Peter
Bromberg's reverse ani lookup.
// Create a new 'Uri' object with the specified string.
Uri myUri =new
Uri("
http://www.anywho.com/qry/wp_rl?npa="+strNumber.Substring(0,3) +
"&telephone="+ strNumber.Substring(3,7) + "&btnsubmit.x=36&btnsubmit.y=9");
// Creates an HttpWebRequest with the specified URL.
HttpWebRequest myHttpWebRequest =
(HttpWebRequest)WebRequest.Create(myUri);
myHttpWebRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; Q312461; .NET CLR 1.0.3705)";
HttpWebResponse res = (HttpWebResponse)myHttpWebRequest.GetResponse();
StreamReader sr = new StreamReader(res.GetResponseStream(),
System.Text.Encoding.UTF8);
string pageContent = sr.ReadToEnd();
res.Close();
sr.Close();
//parse the response looking for the goodies
int startpos = pageContent.IndexOf(@"bin/amap.cgi?") + 10;
if(startpos != -1)
{
int endpost = pageContent.IndexOf("Maps & Directions");
if(endpost != -1)
searchtext = pageContent.Substring(startpos, endpost - startpos + 17);
strResult = searchtext;
sr.Close();
}