Check for unread Reddit mail, Webscraping, combining CSS, XPath, JSONiq, and automatically form evaluation

xidel

  • Download and extract data from HTML/XML pages as well as JSON APIs.
    More information: <https://www.videlibri.de/xidel.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

xidel {{https://reddit.com}} --follow "{{form(css('form.login-form')[1], {'user': '$your_username', 'passwd': '$your_password'})}}" --extract "{{css('#mail')/@title}}"

click the source code to copy install xidel on any operating system with command-not-found.com