HTML::TextExtractor split text

Discussion in 'A-Parser Support Forum' started by DeathStapler, Oct 10, 2015.

  1. DeathStapler

    DeathStapler A-Parser Pro License
    A-Parser Pro

    Joined:
    Mar 1, 2014
    Messages:
    9
    Likes Received:
    1
    I would like to extract content from websites and split the results so that there is only one sentence per line. Is this possible with HTML::TextExtractor?

    I tried using the Results Builder and String Split, but it didn't work for me.
     
  2. Forbidden

    Forbidden Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 9, 2013
    Messages:
    3,337
    Likes Received:
    1,795
    You can use Regex Match for split block to sentences lists:

    [​IMG]
     
    DeXtR likes this.
  3. Forbidden

    Forbidden Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 9, 2013
    Messages:
    3,337
    Likes Received:
    1,795
    Code:
    eyJwcmVzZXQiOiJFeHRyYWN0IHNlbnRlbmNlcyIsInZhbHVlIjp7InByZXNldCI6
    IkV4dHJhY3Qgc2VudGVuY2VzIiwicGFyc2VycyI6W1siSFRNTDo6VGV4dEV4dHJh
    Y3RvciIsImRlZmF1bHQiXV0sInJlc3VsdHNGb3JtYXQiOiIkcDEubGlzdC5mb3Jt
    YXQoJyRzZW50ZW5jZVxcbicpIiwicmVzdWx0c1NhdmVUbyI6ImZpbGUiLCJyZXN1
    bHRzRmlsZU5hbWUiOiIkZGF0ZWZpbGUuZm9ybWF0KCkudHh0IiwiYWRkaXRpb25h
    bEZvcm1hdHMiOltdLCJyZXN1bHRzVW5pcXVlIjoibm8iLCJxdWVyeUZvcm1hdCI6
    WyIkcXVlcnkiXSwidW5pcXVlUXVlcmllcyI6ZmFsc2UsInNhdmVGYWlsZWRRdWVy
    aWVzIjpmYWxzZSwiaXRlcmF0b3JPcHRpb25zIjp7Im9uQWxsTGV2ZWxzIjpmYWxz
    ZSwicXVlcnlCdWlsZGVyc0FmdGVySXRlcmF0b3IiOmZhbHNlLCJxdWVyeUJ1aWxk
    ZXJzT25BbGxMZXZlbHMiOmZhbHNlfSwicmVzdWx0c09wdGlvbnMiOnsib3Zlcndy
    aXRlIjpmYWxzZX0sImRvTG9nIjoibm8iLCJrZWVwVW5pcXVlIjoiTm8iLCJtb3Jl
    T3B0aW9ucyI6ZmFsc2UsInJlc3VsdHNQcmVwZW5kIjoiIiwicmVzdWx0c0FwcGVu
    ZCI6IiIsInF1ZXJ5QnVpbGRlcnMiOltdLCJyZXN1bHRzQnVpbGRlcnMiOlt7InNv
    dXJjZSI6WzAsWyJ0ZXh0cyIsInRleHQiXV0sInR5cGUiOiJyZWdleCIsImFycmF5
    IjoibGlzdCIsInJlZ2V4IjoiKFteLiE/XXszMCx9KD86Wy4hP118JCkpIiwicmVn
    ZXhUeXBlIjoiZyIsInRvIjpbInNlbnRlbmNlIl19XSwiY29uZmlnT3ZlcnJpZGVz
    IjpbXX19
     
  4. DeathStapler

    DeathStapler A-Parser Pro License
    A-Parser Pro

    Joined:
    Mar 1, 2014
    Messages:
    9
    Likes Received:
    1
    That's perfect. Thanks.
     
    Forbidden likes this.

Share This Page