PHP头条
热点:

php curl抓取新浪微博内容


很多人都喜欢在网站上DIY自己的微博,所以我也写了一个。
这里直接抓取了新浪微博工具中的微博秀地址。

<?(0="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=2&ptype=1&speed=0&skin=1&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=1724077823&verifier=8738a0fa&dpc=1"; 
  =,CURLOPT_HEADER,,CURLOPT_URL,,CURLOPT_RETURNTRANSFER,1=curl_exec(('/<p class="weiboShow_mainFeed_listContent_txt">(.*)<\/p>/iUs',,);
  ('/<span class="weiboShow_mainFeed_listContent_actionTime">(.*)<\/span>/iUs',,);
  =('<div class="weiboShow_developer_pic">',=('</div>',[1("/src=\"([^\"].*)\"/iUs",[0],);

  =[0=[0=(, );
  (  => "<img src='".[1][0]."' height='50'/>" ( (?>

www.phpzy.comtrue/php/8476.htmlTechArticlephp curl抓取新浪微博内容 很多人都喜欢在网站上DIY自己的微博,所以我也写了一个。 这里直接抓取了新浪微博工具中的微博秀地址。 ? (0 ="http://widget.weibo.com/weiboshow/index.php?language=widt...

相关文章

相关频道:

PHP之友评论

今天推荐