ryh95 / pyspider-stock Goto Github PK
View Code? Open in Web Editor NEWA project using pyspider to collect data and NLP techs to analyze the correlation among the data
A project using pyspider to collect data and NLP techs to analyze the correlation among the data
$ python main.py
Traceback (most recent call last):
File "main.py", line 42, in
aggregateFactor.aggregate(stockCode, grab_time)
File "/Users/linkerlin/gits/pyspider-stock/east_sentiment/aggregateFactor.py", line 22, in aggregate
for result in documents['result']:
TypeError: 'CommandCursor' object has no attribute 'getitem'
TypeError: Bad argument
at TypeError (native)
at ChildProcess.spawn (internal/child_process.js:274:26)
at exports.spawn (child_process.js:362:9)
at Object. (/usr/local/lib/node_modules/phantomjs/bin/phantomjs:22:10)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
internal/child_process.js:274
var err = this._handle.spawn(options);
^
{
"content": "{"error_description":"您的请求过于频繁,请稍后再试","error_uri":"/statuses/search.json","error_code":"22612"}",
"encoding": null,
"error": "HTTP 400: Bad Request",
"headers": {
"Cache-Control": "private, no-store, no-cache, must-revalidate, max-age=0",
"Connection": "keep-alive",
"Content-Type": "application/json;charset=UTF-8",
"Date": "Sat, 27 May 2017 04:19:58 GMT",
"P3p": ""CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT""",
"Server": "openresty/1.11.2.1",
"Strict-Transport-Security": "max-age=31536000",
"Trace-Id": "58a863cd89fab695",
"Transfer-Encoding": "chunked",
"X-Errorcode": "22612",
"X-Http-Reason": "Bad Request"
},
"ok": false,
"redirect_url": "https://xueqiu.com/statuses/search.json?count=10&comment=0&symbol=SH000003&hl=0&source=user&sort=time&page=78&_=1495858798955",
"status_code": 400,
"time": 0.17786097526550293
}
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.