开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜