自定义脚本——替换

6 讨 论 457 浏览量 云采集引擎

自定义脚本样例

如何使用脚本处理抓取数据,替换一些标签或者回车换行等

样例脚本:

字符替换处理(元转换成¥)

<?php
function CUSTOMFUN($inputstr){
// 返回替换后的结果,第一个参数为替换前的内容,第二个参数替换后的内容,第三个参数表示你抓取的内容
return str_replace("元", "¥",$inputstr);
}
echo CUSTOMFUN($PARASTR); // Not Allowed to Modify
?>

6讨 论
已讨论 5 天 作者: Kwgdbype
help with writing research papers <a href="https://researchpaperssfk.com/#">best college essay ever</a> essay writing books
已讨论 5 天 作者: Zohandsab
buy viagra online you cannot delete your posts in this forum
 cheapest viagra on line
 <a href="https://viagranfl.com/#">cost of viagra
</a> - viagra ingredients
 https://viagranfl.com/# - viagra canada online pharmacy
 viagra for women dosage forum contains new posts
已讨论 3 天 作者: JgscAnalm
advanced higher english dissertation <a href="https://thesisbyd.com/#">a good argument essay</a> find someone to do my homework
已讨论 3 天 作者: Fqfarrab
writing a theme essay <a href="https://essaywritingservicesjy.com/#">research paper written</a> biology research proposal
已讨论 2 天 作者: FgsMoumn
help with corporate finance homework <a href="https://writemypaperbuyhrd.com/#">geography dissertation</a> top rated essay writing service

Finndy Copyright©2017 | Powered by Q2A

...