Is there any good tool for php to capture captured page information ?? Is there any good tool for php to capture captured page information ??
Reply content:
Is there any good tool for php to capture captured page information ??
Http://simplehtmldom.sourceforge.net/manual.htm
find('article.newsentry') as $article) { $item['time'] = trim($article->find('time', 0)->plaintext); $item['title'] = trim($article->find('h2.newstitle', 0)->plaintext); $item['content'] = trim($article->find('p.newscontent', 0)->plaintext); $news[] = $item;}print_r($news);
File_get_html takes only a little more time than wget and curl.
Simple_html_dom.php does not perform DOM analysis at a slow speed, and the PHP7 (pcre jit) speed can be doubled.
There are also:
PhpQuery-jQuery port to PHP
Https://github.com/TobiaszCudnik/phpquery
Http://querylist.cc/
Ganon-Fast (html dom) parser written in PHP
Https://github.com/Shemahmforash/Ganon
PHP packet capture? I don't understand...
Recommended Fiddler for packet capture
The browser itself comes with it. If you want to find the machine traffic. The death of fao. Transliteration, the name is forgotten, or Baidu search kelai
Are you collecting data? Intercept? Or store data streams
Based on your comments:
The previous expression is incorrect. What I want to ask is how to parse the dom to extract data after the php captures the page?
Let's take a look at this open-source project.
Https://github.com/sunra/php-simple-html-dom-parser
JQueryPHP snoopy