how to get data in td:nth-child(5) #41
Answered
by
tusharojha
Srikarthikeyan4006
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
tusharojha
Apr 5, 2021
Replies: 2 comments 3 replies
-
You can add td:nth-child(5) inside the selector to do it. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
tusharojha
-
thanks a lot ..it worked well
…On Sun, Apr 11, 2021 at 1:22 PM Tushar Ojha ***@***.***> wrote:
Try this:
void loadPage() async {
if (await webScraper.loadFullURL(
'https://ngodarpan.gov.in/index.php/home/statewise_ngo/7589/33/1?per_page=100')) {
try {
var elements = webScraper.getElementTitle('tbody > tr > td:nth-child(4)');
elements.forEach((img) => print(img));
} catch (e) {
print(e);
}
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#41 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOUHEQWY25CEWVXEFMIZU5TTIFINHANCNFSM42NIGF5A>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add td:nth-child(5) inside the selector to do it.
For example:
div > section > ul:nth-child(2) > li:nth-child(1)