I have a selector that has a tenancy to change slightly ex: #APP > div > div.hero-PwoFv7gG > table > tbody > tr:nth-child(2) > td > span > span
the div.hero-something is what changes.
The code i have is: my $data = $dom->at('#APP > div > div.hero-PwoFv7gG > table > tbody > tr:nth-child(2) > td > span > span')->text;
however this keeps breaking when the hero-something changes. Would someone be able to point me in the right direction as to how i could make my code more robust? I've tried wildcards in the at but that doesn't work...In reply to searching with mojo dom by adambot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |