基於PHP/CURL/codeIgniter的Spider Webbot爬蟲[4]-使用remove()移除多餘的文字

$uncommented_page=remove($web_page,"");//移除註釋
$links_removed=remove($web_page,"<a","");//移除超連接
$images_removed=remove($web_page,"<img",">");//移除圖片
$javascript_removed=remove($web_page,"<script","</script>");//移除其中的JS腳本javascript

//java

$removed=remove($web_page," - T","XT全文下載");//移除其中的JS腳本web

相關文章
相關標籤/搜索