Hi,

I am beginners with scrapy and also with the python. So far I could manage 
to create some basic spiders based on given examples in scrapy doc.

Now I would like to extend the default features according to custom 
requirement. Atm I am trying to change the default tag names in output xml.
For example, 

1) By default it generates xml with item_element='item' and 
root_element='items', instead I want to change it to item_element='ad' and 
root_element='ads'. Also multi-value fields are exported by each value 
inside the <value> element which i want to change with another name.

2) I want to split the data into multiple xmls based on the number of 
records per xml. For example, 5000 <ad> per xml.

I have tried to look into 
http://doc.scrapy.org/en/0.22/topics/exporters.html#xmlitemexporter but I 
could not get clear idea. Could someone provide me exact filename and code 
which can be used to implement this change?

Any help / suggestions would be appreciated.

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 scrapy-users+unsubscr...@googlegroups.com.
To post to this group, send email to scrapy-users@googlegroups.com.
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