xicocaio / financial_web_crawler Goto Github PK
View Code? Open in Web Editor NEWWeb Crawler for financial news with scientific research purposes.
License: GNU General Public License v3.0
Web Crawler for financial news with scientific research purposes.
License: GNU General Public License v3.0
Sometimes the WSJ API returns an HTML error, which is mostly related to the number of elements per request. Then, we get the following error:
ERROR: Spider error processing <POST https://api.wsj.net/api/slinger/headlines/806/2250>
KeyError: 'Summary'
However, these errors appear mostly when the system processes all available news and so it should be treated differently. So this error seems to be caused by an empty list os news being retrieved, and so the API returns an HTML instead of an empty json.
The desired behavior is:
It seems scrapy expects all loops on the same website are self-contained. So, instead of handling the stock iteration inside the main, we should change the spider so that it handles the error inside the spider and the moves to the next stock. This solution for this issue is related to #1, and should be executed simultaneously.
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.