Thanks Pablo.
could you tell me how to get response from save file.
Means i jst want to extract or work only write html(save html) page, i don
wanna hit webpage again n again thats why i am asking
about can we get contents of save file?
EX: firstly i write a page in html name output.html
2: i want to start output.html page instead of start_urls.
is this possible?



On Fri, Apr 11, 2014 at 5:12 PM, Pablo Hoffman <[email protected]>wrote:

> 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.
>

-- 
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.

Reply via email to