Try to retrieve the contents of a div from the external site withg PHP, and XPath

This is an excerpt from the page, showing the relevant code: note: i try to add all
- also to add @ on the class and a at the end on my query, After that,
i use saveHTML() to get it. see my test:


this is my XPath: //*[@id="post-15991"]/div[4]/div[1]
this is the URL:

see the subsequent code:


$remote = "";
$doc = new DOMDocument();
$xpath = new DOMXpath($doc);
$node = $xpath->query('//*[@id="post-519"]/div[4]/div[1]/ul/li[2]');
echo $node->item(0)->nodeValue;

output: But the output looks like so

see the results:  martin@linux-3645:~/dev/php> php p20.php
PHP Notice: Trying to get property of non-object in /home/martin/dev/php/p20.php on line 8
martin@linux-3645:~/dev/php> php p20.php


my way to get the xpath; use google chrome: I have a webpage I want to get some data off:

goal: i need the following data: the values of the following lines

Last updated:
Active installations:
Tested up
see for example the following - view-source:

Version: 1.29.3
Last updated: 5 days ago
Active installations: 100,000+

eg the html lines
        Requires WordPress Version:<strong>4.3.1</strong>                </li>

                    <li>Tested up to: <strong>4.9.2</strong></li>
background: i need the data from all my favorite plugins - want to have it in a db or a calc sheet. So there were approx 70 pages to scrape:_

see here the list for the example - the full xpath:


and job-board-manager:

i used this method: Is there a way to get the xpath in google chrome?
Right click "inspect" on the item you are trying to find the xpath
Right click on the highlighted area on the console.
Go to Copy xpath
i need some ideas how to proceed