Selecting cells on large tables with xpath

Greetings all,

I've looked through every example here and the tutorial, but still cannot pull the specific cells I want (is this even possible?). Copying the xpath from the cell I want looks like this:

//*[@id="maincontent"]/table/tbody/tr[3]/td[1]/table/tbody/tr[12]/td

This pulls nothing, completely blank.

The page I'm trying to pull from (for looking up a massive amount of IP addresses; caring about the ISP and Organization) is here:

http://www.ip-tracker.org/locator/ip-lookup.php?ip=66.249.81.235

Most examples on this site work for me, but are much shorter xpaths. I've attempted to build my own xpaths but can only pull the entire table, not a specific cell. I was hoping someone could explain to me what I'm doing wrong.

The WC3 tutorial didn't really clear things up for me. I've been beating my head against my desk for about 4 hours trying to figure this out.

Any help is greatly appreciated.

Apparently I just needed to sleep.

This solved it:

//*[@id=""maincontent""]//tr[3]//tr[11]//td

This doc was incredibly helpful:

https://gist.github.com/LeCoupa/8c305ec8c713aad07b14
2 Likes

Thanks for sharing that!