Recent Posts by danieli

Subscribe to Recent Posts by danieli 1 post found

Jul 30, 2008
Avatar danieli 1 post

Topic: Usage HOWTOs / Multiple XML export

Hello to everybody!

First of all, I know I will post a silly question. I’m a sysadmin, don’t have much experience with Ruby programming but I’m used to Read Tons of Fine Manuals. And tons of messages in ML or forums. I’m quite always lucky and find the solution by myself, but this is not the case, so here I am:

I want to write an extractor which crawls a large site and save as many xml as it founds the right pages. Is there a way to save xml during a block declaration? Do I save results in an array and then cycle through it creating many small XMLs? Or shall I write a recursive function? Maybe .to_hash method is the right answer? The goal is to provide a form of throttling when importing XMLs into the db…

Please don’t call me newbie…well…yes I’m a Ruby/scrubyt newbie. I love to have clear ideas before starting to code. Moreover, I read quite every post here in the forum and I see you are very, very kind and patient.

Thank you in advance!

Dani