Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 XML to grab website data
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 August 2003 :  15:55:35  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Thanks guys for the info im still playing with it, how about this?

I am grabbing the text from http://www.alexa.com/data/details?url=eznetideas.com and then removing all html tags and then searching for the string Traffic Rank for eznetideas.com: in the text. If you goto http://getguru.eznetideas.net/forum/test.asp you will see i have it working basically but i cant search for the string because its on two lines. So I tried removing everything that I do not want and make the text so it would be all on one line if you do not have word wrapping turned on.

Here is the code I am using and all the Replace functions but I can still not remove all the empty lines.


strHTMLPage = GetHTML("http://www.alexa.com/data/details?url=eznetideas.com")

strPlainText = ClearHTMLTags(strHTMLPage,0)
strPlainText = Replace(strPlainText,vbTab," ",1,-1,1)
strPlainText = Replace(strPlainText,vbTab," ",1,-1,1)
strPlainText = Replace(strPlainText,vbCrLf," ",1,-1,1)
strPlainText = Replace(strPlainText,vbNewLine," ",1,-1,1)
strPlainText = Replace(strPlainText,"  "," ",1,-1,1)
strPlainText = Replace(strPlainText," "," ",1,-1,1)

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 01 August 2003 :  16:37:25  Show Profile  Visit dayve's Homepage
Why can't you search for Traffic Rank for eznetideas.com:? being on 2 lines should not matter? Just use a combination of INSTR and LEN to get the number you want. I can show you an example this evening. Should be quite simple.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 03 August 2003 :  00:48:58  Show Profile  Visit dayve's Homepage
here is a really quick example, nothing fancy...



here is the script I used... (it could be better...)

http://dayve.d2g.com/aspx/pdez.txt


Edited by - dayve on 03 August 2003 00:49:17
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 04 August 2003 :  18:20:40  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Thanks for everyone's help I finally fixed the problem and removed CHR(13) and CHR(10) and it removed all the extra lines. I am not sure why but for some reason it would not match the data even though it was correct just on different lines. Once I removed those two characters then it works perfect.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07