nested scraping
|
|
I have this data I can scrape by class name. I have it nested within div’s by state; I want to have a list something like: [code] <state_list> for each <state> Alaska for each store within the state: <store> <store_name></storename> <store_address></storeaddress> <store_phone></storephone> </store> </state> <state> next state. <store_name> etc</storename> </state </state_list>[/code] here is my code to scrape, I can scrape it all in a list, I’m just not clear on where to stick the do end’s, I think. [code] fetch ‘path_to_file.html’ [/code]
|