How Can I Extract Specific Text From External Webpage?
I spent hours searching and trying without much success...
I want to know how can I extract specific data from external webpage, for example:
Page - www.example.com/A/B/C
Within the page:
<td class="classA">Text1</td>
<td><b class="classB">text2</b> other text... </td>
classA and classB appear开发者_开发百科s only there, and I want to the data: Text1 + Text2
If you can help me with this (in JavaScript) I will be grateful!
Use regular expressions. See string.match() method.
精彩评论