If you just want to save the response body to an "output.html" file you can
do this in a spider callback:
def parse(self, response):
with open("output.html") as f:
f.write(response.body)
On Fri, Apr 11, 2014 at 3:51 AM, masroor javed <[email protected]>wrote:
> Hi,
>
> I am new here in scrapy.
> Please suggest me how to save(write) a webpage in hml form using spider
> code.
>
> start_urls = ["http://noida-uttarpradesh.olx.in/cars-cat-378"]
>
> how will i save or write in html?
>
>
> please let me know.
>
> --
> 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.
>
--
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.