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
orREGEX
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
-
LR
: Fastest option, but not very reliable and very hard on multiple linesCSS
: Very reliable and easy (can be copied directly from chrome's inspector) but heavy on performances. Only usable on HTML or XML responsesJSON
: Fast, only usable on JSON responsesREGEX
: 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.