Re: how to extract the urls ,phone no,faxes,metatags from webpages
Every web page is different. You first need to get a bunch of sample pages with the information you want. Go through them and understand their structure so that you can then come up with your string parsing algorithm to parse the page's source code and extract the information you need.
Now you could do simple string searches, or you can use regex, or a combination of both. You know what the page sources look like, so you'd have to decide this.
Re: how to extract the urls ,phone no,faxes,metatags from webpages
multiple posts of the same request. *sighs*
good day sir.
Re: how to extract the urls ,phone no,faxes,metatags from webpages
I get your puns, though they may have been unintended. I'll browse for more threads now.
Re: how to extract the urls ,phone no,faxes,metatags from webpages
no puns intended,
lets see:
First
Second
Third
Fourth
Fifth
Six
This is clearly abusive behavior
Perhaps this user will begin to ask more specific requests? instead of requesting the same thing over and over and over again.
Re: how to extract the urls ,phone no,faxes,metatags from webpages
Six... And all six with different answers. Clearly why this is detrimental to the question asker and answerer(s). And I see a few wrong/incorrect methods as well. This is just as annoying as when users turn their system clocks ahead so that their post gets to be on top in newsgroups.
Re: how to extract the urls ,phone no,faxes,metatags from webpages
tokers ball_cdxx ,idonth'v knowlegde about regx ,so iam asking 6 times ,now iam found how to extract the urls,and metatags ,could u ple explain how to extact the phone no,faxes,emails from webpages ,just give me ur valuble suggestion thts enough
thanku for evry one ,thanku somuch
http://www.vbforums.com/member.php?u=42287
Re: how to extract the urls ,phone no,faxes,metatags from webpages
tokers ball_cdxx ,idonth'v knowlegde about regx ,so iam asking 6 times ,now iam found how to extract the urls,and metatags ,could u ple explain how to extact the phone no,faxes,emails from webpages ,just give me ur valuble suggestion thts enough
thanku for evry one ,thanku somuch
recards
ramesh
Re: how to extract the urls ,phone no,faxes,metatags from webpages
Keep in mind most people don't like their personal info lifted from websites.
With that being said, here's some reference:
REGEXLIB Phone
REGEXLIB E-Mail
Re: how to extract the urls ,phone no,faxes,metatags from webpages
tokersball_cdxx ,thanku somuch ,thanku
and iam studing these emails,phone regexlib,very diffcult part in .net, now iam trying to understand this part,but u have any example coding plz help me
again thanku ,thanku somuch
Re: extract the urls ,phone no,faxes,metatags from webpages
public sub Main()
Dim request as System.Net.HttpWebRequest
Dim response as System.Net.HttpWebResponse
Dim s as Stream
' create a request to the url
request = CType(WebRequest.Create("http://www.w3c.org/"), HttpWebRequest)
' get the response
response = CType(request.GetResponse(), HttpWebResponse)
' get the stream of data and read into a string
s = response.GetResponseStream()
Dim strContents as string = new StreamReader(s).ReadToEnd()
**************************************************
here
programe is not wrong
if build the application giving break point
s = response.GetResponseStream()
Dim strContents as string = new StreamReader(s).ReadToEnd()
here appli very slow and fetching results is very poor
anybody body give ma valuble suggetion