eT` Posted May 7, 2012 Report Share Posted May 7, 2012 Ko Jūs vislabāk ieteiktu, lai no lapas source zvilktu sev vajadzīgās lietas? Dažas lietas man jāizvelk no <head> dažas no <div id=""> Zinu, ka var ar preg_match, bet iespējams ir kādā ātrāka/ērtāka bibliotēka Quote Link to comment Share on other sites More sharing options...
briedis Posted May 7, 2012 Report Share Posted May 7, 2012 http://www.php.net/manual/en/class.domdocument.php Quote Link to comment Share on other sites More sharing options...
codez Posted May 7, 2012 Report Share Posted May 7, 2012 node.js un jquery salikums ir ļoti labs, jo ērts un, ja tomēr neesi izmantojis, maz jauna jāapgūst, ja zini javascript un jquery. Piemēram, vari izmantot node.io bibliotēku: https://github.com/chriso/node.io/wiki/Scraping Quote Link to comment Share on other sites More sharing options...
101111 Posted May 7, 2012 Report Share Posted May 7, 2012 (edited) Zinu, ka var ar preg_match Nepareizi http://stackoverflow...1732454#1732454 EDIT: savlaik esmu veiksmīgi veicis līzīgus uzdevumus izmantojot phpQuery: http://code.google.com/p/phpquery/ Edited May 7, 2012 by 101111 Quote Link to comment Share on other sites More sharing options...
404 Posted May 7, 2012 Report Share Posted May 7, 2012 Ērtākais un jaudīgākais manuprāt ir Xpath. Var viegli un ātri noparsēt praktiski jebko,ja iebrauc. Piemēri Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 7, 2012 Report Share Posted May 7, 2012 Nav kāds portējis Sizzle.JS (jQuery selectors) uz PHP? **Labojums:** Atradu šito... http://code.google.com/p/phpquery/ **Labojums #2:** Gudrie saka, ka sūds. Quote Link to comment Share on other sites More sharing options...
Kemito Posted May 7, 2012 Report Share Posted May 7, 2012 http://simplehtmldom.sourceforge.net/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.