Extract In Multiple HTML Tag

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

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Extract In Multiple HTML Tag

by debyling12 on Fri Dec 29, 2017 4:23 am

Hi, i would like to ask how to extract the BOLD TEXT "The Photographer (2017)" from this html tag below?

<h1><a href="hxxt://sample.com" title="The Photographer (2017)" target="blank;"><img src="http://www.senimovies.net/wp-content/themes/keremiyav4/images/google.png"/></a> The Photographer (2017) </h1>

I have use this code
TAG POS=1 TYPE=H1 ATTR=* EXTRACT=TXT

The result is like looping so many times like this
The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)
debyling12
 
Posts: 2
Joined: Fri Dec 29, 2017 4:16 am

Re: Extract In Multiple HTML Tag

by chivracq on Fri Dec 29, 2017 5:29 am

debyling12 wrote:Hi, i would like to ask how to extract the BOLD TEXT "The Photographer (2017)" from this html tag below?

<h1><a href="hxxt://sample.com" title="The Photographer (2017)" target="blank;"><img src="http://www.senimovies.net/wp-content/themes/keremiyav4/images/google.png"/></a> The Photographer (2017) </h1>


I have use this code
Code: Select all
TAG POS=1 TYPE=H1 ATTR=* EXTRACT=TXT


The result is like looping so many times like this
The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)The Photographer (2017)

CIM...! :mrgreen: (Read my Sig...)

But hum, yep, your 'EXTRACT=TXT' on that 'TYPE=H1' Element should indeed extract the Data you want, I would think... But you've removed all Attributes from your 'TAG' Statement, I hope you know what you are doing indeed, ah-ah...!, as you then might be extracting some completely different Element..., unless iMacros in 'Record' Mode recorded itself "ATTR=*"..., no URL posted, we can't have a look at your Site, even if the URL of your Site is probably not difficult to guess... :roll: (Beurk, ugly-shitty Site btw, yikes...!)

Other Option would be 'EXTRACT=TITLE'... :idea:
- (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...
chivracq
 
Posts: 6566
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Extract In Multiple HTML Tag

by debyling12 on Fri Dec 29, 2017 10:36 pm

Hi, thanks for the reply, i also use EXTRACT=TITLE but there's nothing to extract because the title is inside <h1><a title>
debyling12
 
Posts: 2
Joined: Fri Dec 29, 2017 4:16 am

Re: Extract In Multiple HTML Tag

by chivracq on Sat Dec 30, 2017 2:08 am

debyling12 wrote:Hi, thanks for the reply, i also use EXTRACT=TITLE but there's nothing to extract because the title is inside <h1><a title>

Yeah, I don't know, provide the URL of your Site for me to have a look..., and mention your FCI like I already asked you for me to follow up anyway...
- (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...
chivracq
 
Posts: 6566
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: Google [Bot] and 4 guests

-->