# jspider **Repository Path**: feixiang/jspider ## Basic Information - **Project Name**: jspider - **Description**: 一个用js实现,抓取你看到的有规律的东西 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2015-04-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## jspider —— 抓取你看到的有规律的东西 ---- ### 使用方法 参考demo.js文件 jspider.get(url, selector, attrs, function(ret) { var html = ""; $.each(ret, function(i, item) { html += '' + item.html + ''; }); $(".result").append(html); }); 由于js在浏览器会出现跨域问题,jspider支持设置代理,参考cross.php文件 或者直接在chrome启动命令中加入 --disable-web-security ## [演示地址](http://jspider.oschina.mopaas.com/)