写一个php脚本,抓取页面http://php.net/manual/en/langref.php右侧的目录列表.运行此脚本期望得到如下输出:
[2016-12-17 13:44:30] fetching http://php.net/manual/en/langref.php
[2016-12-17 13:44:31] parsing start
[2016-12-17 13:44:32] the right side list is:
PHP Manual (http://php.net/manual/en/index.php)
Copyright (http://php.net/manual/en/copyright.php)
PHP Manual (http://php.net/manual/en/manual.php)
Getting Started (http://php.net/manual/en/getting-started.php)
Installation and Configuration (http://php.net/manual/en/install.php)
Language Reference (http://php.net/manual/en/langref.php)
Security (http://php.net/manual/en/security.php)
Features (http://php.net/manual/en/Features)
Function Reference (http://php.net/manual/en/funcref.php)
PHP at the Core: A Hacker's Guide (http://php.net/manual/en/internals2.php)
FAQ (http://php.net/manual/en/faq.php)
Appendices (http://php.net/manual/en/appendices.php)
[2016-12-17 13:44:33] parsing end
[2016-12-17 13:44:34] saving to file langref.txt
[2016-12-17 13:44:35] saved 最佳答案