Order of preferability for parse mode



  • So I wanted to know what is the most preferable way to parse? Given the possibility of using LR, CSS, JSON or REGEX which one is the best to use. Reliability- and speed-wise.



  • 4 ways to parse a value, it will depend of the source response, most easy is LR


  • Admin

    • LR: Fastest option, but not very reliable and very hard on multiple lines
    • CSS: Very reliable and easy (can be copied directly from chrome's inspector) but heavy on performances. Only usable on HTML or XML responses
    • JSON: Fast, only usable on JSON responses
    • REGEX: Can be really slow but it can achieve things that the other methods cannot even dream of (requires a lot of knowledge)


  • Thank you for the thorough explanation.


Log in to reply