You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and good day
I have the this webpage below on image.
I'm using web_scraper: ^0.1.4
This is how I scrape,
final webScraper =WebScraper('http://fightnights.com');
if (await webScraper.loadWebPage('/upcoming-boxing-schedule')) {
finalList<Map<String, dynamic>> elements = webScraper.getElement(
"div.container > div.row > div.col-md-8.main-col > div.unicard > ul.event-list > li",
[],
);
for (finalMap<String, dynamic> element in elements) {
// get the timefinal time = element.getElementTitle("time.visible-xs > span.day");
//get infofinal eventName = element.getElementTitle("div.info > h2.title");
}
}
from a given elements I want again to get the sub elements, how do I do it.
I was thinking something like this, obviously this one is wrong syntax but I want to get the sub elements from the initial result of elements
// get the timefinal time = element.getElementTitle("time.visible-xs > span.day");
//get infofinal eventName = element.getElementTitle("div.info > h2.title");
The text was updated successfully, but these errors were encountered:
mjmon
changed the title
How to parse from a given element tree
How to parse subElements from a given element
Jan 15, 2022
mjmon
changed the title
How to parse subElements from a given element
How to parse subElements from a given element
Jan 15, 2022
Hello and good day
I have the this webpage below on image.
I'm using
web_scraper: ^0.1.4
This is how I scrape,
from a given elements I want again to get the sub elements, how do I do it.
I was thinking something like this, obviously this one is wrong syntax but I want to get the sub elements from the initial result of elements
The text was updated successfully, but these errors were encountered: