What is the difference between getElementsByTag and select in Jsoup (e.g. if getting links or image tags)? If they differ, how do I know which one to use in a certain situation?
What is the difference between getElementsByTag and select in Jsoup (e.g. if getting links
Share
In general i would prefer
selectbecause it’s definitely faster, more flexible and every select can be done in a single line.I guess the only advantage of
getElementsBy...is: you don’t have to know the Selector API (or better: the syntax … even if its realy easy to lern, check out: Selector API doc).