Mystixs Posted September 19, 2006 Share Posted September 19, 2006 Ok. How do I grab a string of text from one page and display it on another. And have it updated as the other website updates.Here is what I want.I want to take the words "Totalskills 395" from this page here: http://www.syrnia.com/index.m2h?page=highs...high=Vertumnus1and display it on a website for some friends.If someone can explain or show me how to do this I would greatly appreciate it.-Shenzhelong Link to comment Share on other sites More sharing options...
aspnetguy Posted September 19, 2006 Share Posted September 19, 2006 this library will help you http://www.daniweb.com/code/snippet293.html Link to comment Share on other sites More sharing options...
justsomeguy Posted September 19, 2006 Share Posted September 19, 2006 Notwithstanding the fact that the table is made of up invalid HTML which never closes: <tr bgcolor=333333><td>Skill <td>Level <td>Exp<tr><td>Totalskills<td>395<td>4170725<tr><td>Level<td>21<td>129614 It would be easy enough to get that one number. You could search for and get the position of the "Totalskills" string, get a substring that goes from that word to the end of the line (to the next "\n" character), and then use the sscanf function to get the 2 numbers.That guy's really good at woodcutting, BTW. Not so much in strength or health, but damn he can chop a tree! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now