I have written custom pipeline to save the images in custom name. i.e. the
last part of the url . However, every time the crawlers run and images are
scraped , they always are saved in sha1 hash. What might be the error in my
pipeline ?
My code looks like this , can anyone help me ? Thanks
class MyImagesPipe(ImagesPipeline):
#Rename the image
def file_path(self,request,response=None,info=None):
image_guid = response.url.split('/')[-1]
return urllib2.unquote('%s' %(image_guid))
can anyone help me ? Thanks
--
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.