How to obtain the specified content on this page

Source: Internet
Author: User
How to obtain the specified content on this page: January (high praise, moderate comment, poor comment), the last six months (high praise, medium comment, poor comment), half a year ago (high praise, medium comment, poor comment) for example, getting the number in the circle: how to get the specified content on the page from the last one
Http://rate.taobao.com/user-rate-39512.htm this is the page, if you get this page in the last week of praise, moderate evaluation, negative evaluation, and recent January (praise, medium evaluation, negative evaluation), the last six months (praise, medium evaluation, negative evaluation ), 6 months ago (favorable comments, moderate comments, and negative comments)
For example, obtain the number in the circle:
Last week:



Last month:


------ Solution --------------------
PHP code
$ Url = 'http: // rate.taobao.com/user-rate-39512.htm'{s S = file_get_contents ($ url); preg_match_all ('# class = "J_show_list J_MakePoint ". + tbrate \. ([\ d.] + ?). +> (\ D +) # isU ', $ s, $ r); print_r ($ r

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.