tarasm
unread,Mar 16, 2009, 10:29:14 PM3/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scrapy-users
Hello,
I'm encountering a weird problem that I can't seem to overcome.
I'm trying to pass a variable to a callback function.
when I do
Request(url, callback=self.testfunction)
def testfunction(self, response):
// here i have access to the response
but if I try to pass an argument to testfunction in the following way:
Request(url, callback=self.testfunction(title))
def testfunction(self, test):
// I get the test argument, but I loose the response
What do I do?
Thank you,
Taras