Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.

Forum rulesBefore asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Unfortunately <div class="left"> can be positioned in various places in the page, so I cannot use XPath to get to it or to any of the inside divs
There's also no telling what comes next. Lastly the <div class="cls"> can be found in various other places in the page.
So is there a way to extract the text of the divs inside?
Ideally, is there a way to say extract the text from body > div.content > div.left > div:nth-child(2) or (3) or (30)?

Unfortunately <div class="left"> can be positioned in various places in the page, so I cannot use XPath to get to it or to any of the inside divs
There's also no telling what comes next. Lastly the <div class="cls"> can be found in various other places in the page.
So is there a way to extract the text of the divs inside?
Ideally, is there a way to say extract the text from body > div.content > div.left > div:nth-child(2) or (3) or (30)?

The only ones that will always appear on any page are the div.title and div.left

CIM...! (=> ... For me to have a look, read my Sig...)

Oh...!, but hum..., your previous Thread has been waiting for some Follow-up from your Side for about 1.5 years..., oops...!
You'll first need to follow up on and to "finish" your previous Thread "a bit correctly" for me to want to help you again..., and maybe you can bump this one in 1.5 years if you are still looking for a Solution then...

- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...

florina wrote:I'll check the last thread, but maybe not today.
So the answer for this problem, as far as I can tell, is to switch to Python. I'd rather not, but if it works it works

OK, I'll see your Update (in the previous Thread)...

For this current one, no idea, I'll only read it after you'll have handled the previous one, and mentioned your FCI in this one..., but I don't see any correlation between extracting a 'DIV' with iMacros (Standard and Core Functionality for iMacros) and switching to Python...! Sounds like "killing a fly with a bazooka" to me...!

- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...