|
-
Jun 19th, 2001, 11:40 PM
#1
Thread Starter
Addicted Member
Scan Webpage
Does anyone know how I can scan a webpage for certain words?
-
Jun 19th, 2001, 11:47 PM
#2
PowerPoster
Well sort of it's pretty difficult with frames and the like!
Bloodeye and SD helped me with something similar!
Try something like this:
Option Compare Text
Dim site(2) As String
Dim words(3) As String
Dim siteNum As Integer
Private Sub Form_Load()
Web1.Navigate "http://www.riu.com.au/gold/secure/v5i34/contents.htm"
site(0) = "http://www.riu.com.au/gold/secure/v5i34/contents.htm"
site(1) = "http://www.mining-journal.com/emailsub.htm"
words(0) = "Resource Service Group"
words(1) = "RSG"
words(2) = "received"
words(3) = "gabriel"
siteNum = 0
End Sub
Private Sub web1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
On Error Resume Next
Dim itext As String
Dim x As Integer
Me.Caption = "site:" & siteNum & " " & URL
If (pDisp = Web1.object) Then
itext = Web1.Document.documentElement.outerText
For x = 0 To UBound(words)
If InStr(itext, words(x)) <> 0 Then List1.AddItem Web1.LocationURL
Next x
MsgBox "no records"
End If
If siteNum = -1 Then
Exit Sub
End
End If
nextSite
End Sub
Private Sub nextSite()
Web1.Navigate site(siteNum + 1)
siteNum = -1
End Sub
-
Jun 20th, 2001, 12:29 AM
#3
Thread Starter
Addicted Member
I want to scan another browser, such as IE.
-
Jun 20th, 2001, 12:33 AM
#4
PowerPoster
Umm that uses the internet control which is IE!
thats what web1 is!
But you want to scan another application?????
-
Jun 20th, 2001, 12:45 AM
#5
Thread Starter
Addicted Member
I realize that, I want to use the REAL IE, not a custom browser. Whenever a user is surfing in the REAL stand alone IE, I want to scan for certain words in the page he/she's on.
-
Jun 20th, 2001, 01:20 AM
#6
PowerPoster
Perhaps the will help you then:
here
I'm sure you can alter it to suit you!
If not pm mathew!
Last edited by Beacon; Jun 20th, 2001 at 01:26 AM.
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
|