I want to know that what type of object is returned by the request object in scrapy
http://doc.scrapy.org/en/latest/topics/request-response.html
Suppose this is my request
myrequest = Request("http://www.example.com", callback = self.mytest)
Now i want to know what will be in the myrequest variable.
is there any way to override the Request object because i want to create MYREQUEST which returns response object so that i can acess resposne.body , resposne.url
myvar =MYREQUEST("http://www.example.com", callback = self.mytest)
then i can access myvar.body and myvar.url
I could not find Request Class defination from git hub where is that class defined.
i can oly find request folder there but not Request Class
https://github.com/scrapy/scrapy/tree/master/scrapy/http
Requestis aclass, so you are not calling a function here, what really happens is that you created aRequestobject and assigned it tomyreqeust.As stated in
Scrapy‘s documentation: