extracting all link in a web page

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.

extracting all link in a web page

by ihsan on Wed Feb 10, 2016 2:51 am

i'm trying to extract links in a web page but i only can get one link. can anyone help me to fix my code for extacting all links in it?

VERSION BUILD=8961227 RECORDER=FX
TAB T=1
URL GOTO=https://www.blogger.com/profile/16168795899587474395
TAG POS=1 TYPE=DIV ATTR=CLASS:contents-after-sidebar*
TAG POS=1 TYPE=li ATTR=CLASS:sidebar-item*
TAG POS=R{{!LOOP}} TYPE=A ATTR=HREF:* EXTRACT=HREF

thanks :D
ihsan
 
Posts: 5
Joined: Mon Feb 01, 2016 3:39 pm

Re: extracting all link in a web page

by chivracq on Wed Feb 10, 2016 4:02 am

ihsan wrote:i'm trying to extract links in a web page but i only can get one link. can anyone help me to fix my code for extacting all links in it?

Code: Select all
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
URL GOTO=https://www.blogger.com/profile/16168795899587474395
TAG POS=1 TYPE=DIV ATTR=CLASS:contents-after-sidebar*
TAG POS=1 TYPE=li ATTR=CLASS:sidebar-item*
TAG POS=R{{!LOOP}} TYPE=A ATTR=HREF:* EXTRACT=HREF


thanks :D

FCIM, again...! :mrgreen: (I've already asked you to mention your FCI when you open a Thread..., Required Info for me to have a look..., and you were using a different Browser in your previous Thread...)
- (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: 6490
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: extracting all link in a web page

by ihsan on Fri Feb 12, 2016 12:45 am

ups! sorry
i was using imacros 8.9.6 , fx version 43.0.1 at windows 7 32bit and when i test it at my latest version of crome it gives me the same result.

thanks for helping :D
ihsan
 
Posts: 5
Joined: Mon Feb 01, 2016 3:39 pm


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 7 guests

-->