Is there any good tool for php to capture captured page information ??

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.