Tal
Tal

Reputation: 1

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 appears only there, and I want to the data: Text1 + Text2

If you can help me with this (in JavaScript) I will be grateful!

Upvotes: 0

Views: 733

Answers (1)

Pacific Voyager
Pacific Voyager

Reputation: 79

Use regular expressions. See string.match() method.

Upvotes: 0

Related Questions