Reputation: 29
I need a method to remove from the CyanogenMod website Downloads area all supported models using PHP, and be able to separate model information in a variable object ($variable->Object;)
.
I think it's possible, removing the HTML information, but have no idea where to start ...
The html follows this pattern.
the word VENDOR in uppercase would be the manufacturer's name
lowercase no use is used to call css function that manufacturer
<li id="vendor_VENDOR">
<span> VENDOR </span>
</li>
<ul class = "nav-list nav">
<li id="device_DEVICE MODEL NUMBER"> <a href="javascript: void (0)" onclick="navigate_device ('DEVICE MODEL NUMBER');" class="device"><span> Device name (device model number)</span></a></li>
</ul>
The website: http://download.cyanogenmod.org/
Upvotes: 2
Views: 254
Reputation: 3509
The best I ever seen is Simple HTML DOM Parser!!! Seems jQuery, but it's PHP! ;)
Upvotes: 0
Reputation: 577
Of course it's possible.
It is called Web Scrapping
there are many API
in different languages to do that. A lof of them use a css like selector system like jQuery to navigate throgh the HTML Document.
I have been doing that but with Java but there are many PHP solutions. Look at this Goutte
I hope this helps.
Upvotes: 1