There is a group of sites. Their addresses are known. Each of them has a title on the main one registered in the h1 tag. You need to make a script that will bypass them all and gather all the texts from these tags into an array. I tried (so far without a crawl) like this:
<script language="JavaScript" src="http://code.jquery.com/jquery-1.12.4.min.js"></script> <script type="text/javascript"> $.get('http://siteadress.ru', null, function(txt){ alert($(txt).text($("h1").text())); }); </script> But it, naturally, did not pass, since $ .get only gets the text of the document, and does not generate the site. And the site is in php, in drupal, therefore in the text index.php there is no h1.
What will prompt the advice of the wisest?