You are reading a single comment by @ingo and its replies. Click here to read the full conversation.
  • @myxor, thank you for your response.

    I'll have another look this evening.

    But there were different exceptions depending on the page I wanted to load.
    If you open the html, for example with firstobject XML editor, you will also see structural errors due to the embedded javascript. As already written above, very simple HTML/XML structures work.

    Does the example work for you/anyone?

    Bluetooth.println(JSON.stringify({t:"htt­p",url:"https://banglejs.com/reference",­xpath:"/html/body/div/h2"}));
    

    If so, then it seems to be probably a problem with my phone. I do not want to exclude that. It is the Teracube 2e with Android 11 (there are some open issues with the phone).

    I have now modified Bangle.js Gadgedbridge for my use and added Jsoup. I also added the possibility to execute multiple XPath expressions (or selectors) with one call. If I ever have some time, I'll refactor the code and create a merge request.

About

Avatar for ingo @ingo started