I been trying to extract site table text along with its link from the given table to (which is in site1.com) to my php page using a web crawler.
But unfortunately,
Using the Simple HTML DOM Parser library, you can use the following code:
find('td.FootNotes2 a') as $element) { // find all -elements inside a -element
$element->href = "http://www.usmleforum.com" . $element->href; // you can also access only certain attributes of the elements (e.g. the url).
echo $element.''; // do something with the elements.
}
?>
- 热议问题