如何用 php 抓取微信文章正文
1个回答
展开全部
$url = "http://mp.weixin.qq.com/s?__biz=MzA5NTQ2NjUzMA==&mid=207136729&idx=1&sn=a82af7b7ba0bee9a7017b607dc7e5d4b&scene=5#rd";
$contents = file_get_contents($url);
$contents = explode('js_article', $contents);
$contents = $contents[1];
$contents = explode('<script>window.moon_map', $contents);
$contents = $contents[0];
$contents = '<div id="js_article'.$contents;
$contents = file_get_contents($url);
$contents = explode('js_article', $contents);
$contents = $contents[1];
$contents = explode('<script>window.moon_map', $contents);
$contents = $contents[0];
$contents = '<div id="js_article'.$contents;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |