Comments (3)
Just like middleware of scrapy.
from gain.
Google translate from @songww:
We want to add something before or after the download, such as saving the entire url. Or do different processing for different status codes, such as 3xx redirection, 5xx retry, etc.
from gain.
@songww ,
Can you elaborate a bit more on your before and afterhooks. I might be able to implement this for you if you specify a bit more in detail why you need this and how you would use it.
from gain.
Related Issues (20)
- Test failed on Windows HOT 1
- Please do a decent code review before accepting pull requests HOT 1
- Css selector add attr not work correctly HOT 1
- TypeError: write() argument must be str, not dict HOT 1
- Limit the interval between two requests. HOT 7
- Add PhantomJS support. HOT 1
- add encoding HOT 1
- Add document's own parsing HOT 1
- add cssParser
- Repeated bug
- aiofiles BUG HOT 1
- The ``sciencenet_spider.py`` example does not (seem to) work for python 3.6 HOT 5
- Does it work on OSX? HOT 1
- What does this statement mean? HOT 1
- Gain Improvements - Ludaro HOT 5
- SSL handshake failed on verifying the certificate HOT 1
- bug
- demo error
- The project is dead
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.
from gain.