当前位置: > shell编程 >

shell脚本批量采集爱站关键词库示例

时间:2014-12-01 14:21来源:jbxue.com 作者:IT
有关shell脚本批量采集爱站关键词库的方法与代码,获取爱站关键词库,用于整理与分析热门关键词,帮助优化网站,很实用的一段shell脚本代码。


shell脚本批量采集爱站关键词库
 

for i in $(seq 1 50);do curl -s http://baidurank.aizhan.com/baidu/jiameng.com/$i/position/|grep -a 'class="zhishu"'|sed 's/<a target="_blank"//g'|sed 's/class="zhishu"//g'|sed 's/href=\"http:\/\/ci.aizhan.com\///g'|sed 's/\/">.*//g'; done

采集爱站关键词库,效果截图:
<a  data-cke-saved-href=http://www.jbxue.com/jb/shell/ href=http://www.jbxue.com/jb/shell/ target=_blank class=infotextkey>shell</a>脚本批量采集爱站关键词库

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容