How can i scrape this data?

Support
  • Hello,
    can somebody help.. i am trying to scrape some data that is over a few lines i want the data to be just on one line and then save it. i think i need to use a Regex?

    here is an example

    <span class="txtSize2">football</span>
    </td>
    <td width='2'>
    <span>:&nbsp</span>
    </td>
    <td>
    <span class="txtSize2">
    THE FOOTBALL TEAM
    IS NUMBER.2
    </span>

    The data i am looking to scrape into one line is
    THE FOOTBALL TEAM
    IS NUMBER.2

    thanks for any help provided.

  • you can use XPATH like(for you example):
    //*[@class='txtSize2'][2]/text()

  • You can use javaScript in BAS and it is much easier than xPath or Regex.

    Here is how you can get it:

    var elements = document.getElementsByClassName("txtSize2");
        console.log(elements[X].innerText);
    //Where X is the id of the right element in array 
    

  • 0 Votes
    3 Posts
    702 Views
  • -1 Votes
    8 Posts
    1272 Views
  • 0 Votes
    2 Posts
    787 Views
  • 0 Votes
    3 Posts
    841 Views
  • Scrape google ?

    Support
    0 Votes
    4 Posts
    1733 Views