var response = await http.get('https://www....');
dom.Document document = parser.parse(response.body);
var selectElements = document.getElementsByClassName('hello').map((item) => item.children).toList();
I can sort and list by classes thanks to the http library, but I don't know how to do it according to attributes. How can I list by attributes?
There is an HTML output as below. I want to list the ones whose attribute data-time is 9112020 and see the results for lorem ipsum3 and lorem ipsum4.
<tr class="hello" data-country="Germany" data-time="8112020">lorem ipsum1</tr>
<tr class="hello" data-country="Turkey" data-time="8112020">lorem ipsum2</tr>
<tr class="hello" data-country="Germany" data-time="9112020">lorem ipsum3</tr>
<tr class="hello" data-country="Turkey" data-time="9112020">lorem ipsum4</tr>