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