inuanfeng / node-spider Goto Github PK
View Code? Open in Web Editor NEWnodejs爬虫,puppeteer爬虫,爬取汽车之家车型数据,爬省市区信息
nodejs爬虫,puppeteer爬虫,爬取汽车之家车型数据,爬省市区信息
爬取到2221条的时候,就不爬取了。也不会爬取最后一条,也不会生成data.json,你调试了吗?
1、具体代码在:https://github.com/sunfeng90/node-spider/blob/autohome/app.js
你差分一下代码,并合并到你的代码吧
2、可以在你的基础上继续维护和开发吗?
node-spider git:(autohome) node app.js
/Users/bwh/test/node-spider/node_modules/highcharts/modules/exporting.js:9
(function(k){"object"===typeof module&&module.exports?module.exports=k:k(Highcharts)})(function(k){(function(f){var k=f.defaultOptions,p=f.doc,A=f.Chart,w=f.addEvent,I=f.removeEvent,E=f.fireEvent,t=f.createElement,B=f.discardElement,v=f.css,n=f.merge,C=f.pick,h=f.each,F=f.objectEach,u=f.extend,J=f.isTouchDevice,D=f.win,G=D.navigator.userAgent,K=f.Renderer.prototype.symbols;/Edge\/|Trident\/|MSIE /.test(G);/firefox/i.test(G);u(k.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",
^
TypeError: Cannot read property 'navigator' of undefined
at /Users/bwh/test/node-spider/node_modules/highcharts/modules/exporting.js:9:325
at /Users/bwh/test/node-spider/node_modules/highcharts/modules/exporting.js:27:171
at Object.<anonymous> (/Users/bwh/test/node-spider/app.js:16:40)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:423:7)
LZ,是不是忘记--save,貌似下载了,无法存储到MySQL和MongoDB中
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.