I succesfully read a specific webpage into a variable using:
$content=file_get_contents('https://www.ip-tracker.org/locator/ip-lookup.php?ip=82.36.170.89');
I need to extract from this page the following data:
Country: United Kingdom
Capital: London
State: Camden
City Location: Hampstead
So maybe use 4 variables like:
$country="United Kingdom"
$capital="London"
$state="Camden"
$citylocation="Hampstead"
The part of the page with the needed data is something like:
<tr><th>Country:</th><td> United Kingdom <img src='images/ip-flags/gb.png' alt='IP Location Find In United Kingdom'> (GB)</td></tr><tr><th>Capital:</th><td class='tracking'>London</td></tr><tr><th>State:</th><td class='tracking lessimpt'>Camden</td></tr><tr><th>City Location:</th><td class='vazno'>Hampstead
How can I exctract these values? Thank you Lucas