Facing issue related to request redirect. When I searched about it and came
to know about Scrapy Middle ware. I tried to implement it but it's not
working.
DOWNLOADER_MIDDLEWARES = {
'scrapy.contrib.downloadermiddleware.redirect.RedirectMiddleware': None,
'scrapy.contrib.downloadermiddleware.redirect.MetaRefreshMiddleware':
None,
'myscrapy.middleware.myredirect.MySpiderRedirectHandler' :120
}
class MySpiderRedirectHandler(RedirectMiddleware):
def process_response(request, response, spider):
print "MySpiderRedirectHandler:=",response
return response
--
You received this message because you are subscribed to the Google Groups
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.