Reputation:
I'm trying to get CIK codes from EDGAR. They don't give id
s to their elements, but they at least give a name
.
In this case, when there's a result, the page will have a hidden
with name="CIK"
.
I've got the page in a DOMDocument
and that in a DomXPath
. How do I get the value of that field?
Many thanks in advance!
Upvotes: 0
Views: 118
Reputation:
Simple once you wind your way through the docs.
$CIK = $finder->query("//hidden[@name='CIK']");
Oh, I wouldn't use that though. Their html
is nothing but a mess and gave errors all over the place.
Use this instead.
Upvotes: 1