|
-
Jul 15th, 2006, 03:14 AM
#1
Thread Starter
Junior Member
bug will raising
Dear friends,
I am developing an windows application.the application deals with extracting urls from a specified webpage(web page name will be given dynamically).now i want to get all the urls/phone nos/fax no presented in that web page.friends give me ur valuable suggestions.
regards
ramesh
Last edited by ramesh.mavin; Jul 19th, 2006 at 08:29 AM.
-
Jul 15th, 2006, 06:38 AM
#2
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.
-
Jul 15th, 2006, 07:13 AM
#3
Fanatic Member
Re: how to extract the urls ,phone no,faxes,metatags from webpages
multiple posts of the same request. *sighs*
good day sir.
-
Jul 15th, 2006, 07:15 AM
#4
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.
-
Jul 15th, 2006, 07:22 AM
#5
Fanatic Member
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.
-
Jul 15th, 2006, 07:39 AM
#6
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.
-
Jul 17th, 2006, 07:08 AM
#7
Thread Starter
Junior Member
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
-
Jul 18th, 2006, 02:56 AM
#8
Thread Starter
Junior Member
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
-
Jul 18th, 2006, 07:46 AM
#9
Fanatic Member
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
-
Jul 18th, 2006, 08:55 AM
#10
Thread Starter
Junior Member
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
-
Jul 19th, 2006, 08:27 AM
#11
Thread Starter
Junior Member
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
Last edited by ramesh.mavin; Jul 20th, 2006 at 03:11 AM.
-
Jul 19th, 2006, 05:52 PM
#12
-
Jul 20th, 2006, 03:32 AM
#13
Thread Starter
Junior Member
Re: bug will raising
above mention red color in this particuletr area not error fetching results is very poor
break point moveing is close in this place
-
Jul 20th, 2006, 09:10 AM
#14
Re: bug will raising
It's not supposed to be immediate, it's supposed to be slower than immediate. Since it is sending the request and waiting for the entire response to be returned.
-
Jul 21st, 2006, 01:30 AM
#15
Thread Starter
Junior Member
Re: bug will raising
mendhak iam new member in this forum ,how to requets the questions
just now iam learning some points,
sorry for the distabence
thank u somuch
could u plz explaine clearly my application
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|