Menu

The basic rules for determining the area of monitoring changes on a web page

Korwin
2021-07-17
5 days ago
  • Korwin

    Korwin - 2021-07-17

    For example, I want to be notified of all new uploads (topics) on the torrent tracker rutracker.org with the text "I2P" in the title. What values do I need to enter in the "Start tag: Use tag:" and "Stop tag: Use tag:" fields?

    The "Adblock Plus - free ad blocker" browser add-on would use

    rutracker.org##.row1.tCenter.pad_12
    

    (= tooltip in Mozilla Firefox' DOM and Style Inspector). "Outer HTML":

    <td colspan="10" class="row1 tCenter pad_12">
    (...)
    </td>
    

    "CSS Selector":

    td.row1
    

    "CSS Path":

    html body div#body_container div#page_container div#page_content table tbody tr td#main_content div#main_content_wrap div#search-results table#tor-tbl.forumline.tablesorter.tablesorter-default.tablesorter64ba331b1ff448 tbody tr td.row1.tCenter.pad_12
    

    "XPath":

    /html/body/div[4]/div[1]/div[2]/table/tbody/tr/td/div/div[1]/table/tbody/tr/td
    
     
  • Korwin

    Korwin - 2021-07-22

    Empirically found that in "Start tag", in this case, I have to enter

    <td colspan="10" class="row1 tCenter pad_12">

    and in the "Stop tag" field -

    </td>

    That is, to indicate the beginning and end of the tracked portion of the web page, you need to use the value "Outer HTML".

    But what if the required tag is spread over multiple lines? I tried to just remove them, and replace line breaks and tabs with a space, but I got the error "Tag could not be found". I selected the desired piece of code, clicked "Use selection", and received the error "Multi-line content is not supported". I did not find any code folding setting in the application. How would you advise to set rules in the situation depicted in the screenshots below?

     

    Last edit: Korwin 2021-07-22
  • Morten MacFly

    Morten MacFly - 2021-07-22

    I am aware of these special cases. There were also already some feature requests on that topic. I will consider this sooner or later. Currently, I like the idea of RegEx (FR#140) a lot. It maybe not an easy option for newbies that don't know RegEx so maybe I'll also implement another (easier) option... Stay tuned.

     
  • Korwin

    Korwin - 6 days ago

    @mortenmacfly, can you add anything to this topic based on the results of the past 4.5 years of development?

     
    • Morten MacFly

      Morten MacFly - 5 days ago

      That's why XPath and JSONPath was added such that you can use what you' described above easily:

      /html/body/div[4]/div[1]/div[2]/table/tbody/tr/td/div/div[1]/table/tbody/tr/td

       
      👍
      1

Anonymous
Anonymous

Add attachments
Cancel