怎么获取这个页面的指定内容

WBOY
Release: 2016-06-13 10:28:18
Original
978 people have browsed it

如何获取这个页面的指定内容
http://rate.taobao.com/user-rate-39512.htm 这是页面,如果获取这个页面中的最近一周的好评、中评、差评,和最近一月(好评、中评、差评),最近半年(好评、中评、差评),半年前的(好评、中评、差评)
如下图 获取圈中的数字:
最近一周:



最近一月:


------解决方案--------------------

PHP code
$url = 'http://rate.taobao.com/user-rate-39512.htm';$s = file_get_contents($url);preg_match_all('#class="J_show_list J_MakePoint".+tbrate\.([\d.]+?).+>(\d+)#isU', $s, $r);print_r($r<div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template