Hello, many-a-times we come across a series of numbered webpages
basePage.html?page=2basePage.html?page=3
and so forth, wherein there are several fields identified by their labels:
<h2 class="category-heading">Name1</h2><label>Parameter1 : </label> <div class="category-related">textOfInterest</div><label>Parameter2 : </label> <div class="category-related">textOfInterest</div><label>Parameter3 : </label> <div class="category-related">textOfInterest</div><h2 class="category-heading">Name2</h2><label>Parameter1 : </label> <div class="category-related">textOfInterest</div><label>Parameter2 : </label> <div class="category-related">textOfInterest</div><label>Parameter3 : </label> <div class="category-related">textOfInterest</div><h2 class="category-heading">Name3</h2><label>Parameter1 : </label> <div class="category-related">textOfInterest</div><label>Parameter2 : </label> <div class="category-related">textOfInterest</div><label>Parameter3 : </label> <div class="category-related">textOfInterest</div>
and so on.
How can the "textOfInterest" of one particular parameter, say, Parameter2, of all the Name*, of all the pages,
basePage.html?page=1toInf
be taken (outputted/exported) into one text file, say, Parameter2.txt?
The "textOfInterest" is often alphanumeric with special characters !@#$% also.
Thanks.
Best Answer