用浏览器采集数据
优点
可以采集如何网站的数据,只要在浏览器中能看到的都能采集,不怕反爬虫。
js实现
使用Tampermonkey(chrome),执行外部js来爬取。
并把爬取的数据出入h5的本地存储数据(sqlite)中。
最后用GM_xmlhttpRequest,跨域提交(拉取)到外部网站。(https://wiki.greasespot.net/GM_xmlhttpRequest)
h5的本地存储(sqlite)
浏览器支持情况
http://caniuse.com/#feat=sql-storage
http://caniuse.com/#feat=indexeddb
存储地址(chrome)
C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\databases
h5的本地存储操作
http://blog.csdn.net/panda_m/article/details/49951555?ref=myread
sqlite数据 查看转存
用SQLiteStudio处理
*注意
本地数据在清理浏览器缓存时会一并清理掉
获取关键词所对应的产品数量 https://suggest.taobao.com/sug?extras=1&code=utf-8&callback=KISSY.Suggest.callback&q=女鞋
-tampermonkey's Introduction
-tampermonkey's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.