I'm trying to make a Imacro script to download multiple photos from Unsplash because I have a project and it's time consuming to download one by one.
So far, I've managed to make the following code. But it skips many images.
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
ONDOWNLOAD FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}} WAIT=YES
TAG POS={{!LOOP}} TYPE=A ATTR=HREF:https://unsplash.com/photos/*/download?force=true
Then I found out that the problem is Unsplash doesn't have download?force=true for all images.
Now, what I want is, let it add + download?force=true part after the URL automatically.
To clarify more, this is what I want.
https://unsplash.com/photos/*/ + download?force=true
Thanks in advance.
This should be good enough, I would think:
TAG POS={{!LOOP}} TYPE=A ATTR=HREF:https://unsplash.com/photos/*/*
Only keep the parts that are always there and replace the parts that might be changing or might not be there with *, like you were already doing in /photos/*/....
Related
is there anyway to make imacro to click this link ? it's dynamic link. so everytime "id=33" will be change.
<span itemprop="name">
<h2>link</h2>
</span>
Preview = http://elakirihub.xyz/new.php
Thanks
Use * character as a wildcard when the last part of the link changes.
Working Example for your case:
TAG POS=1 TYPE=A ATTR=HREF:/story.php?id=*
Since you did not state the environment my example is for iMacros Browser plugin, but the fundamentals apply for iMacros in general.
If you are unsure how to generate the full code before the addition of wildcards you can experiment with recordings or go to the iMacros wiki:
wiki.imacros.net/
First of all I am new to imacro .I am trying to get a list of urls analyzed by Mobile-friendly Test Tool ,but I am not able to get a click on Analyze button using imacros.
I have tried to make it working using class,text as well as with Role, but could not get it working,
Method 1.TAG POS=1 TYPE=DIV ATTR=CLASS:goog-inline-block<SP>jfk-button<SP>jfk-button-action<SP>analyze<SP>main-submit<SP>jfk-button-hover<SP>jfk-button-active<SP>jfk-button-focused<SP>jfk-button-clear-outline&&TXT:*
Method 2.TAG POS=3 TYPE=DIV ATTR=ROLE:button&&TXT:ANALYZE
so is there any other way I could make it working.Thanking you in advance.
This must work:
EVENT TYPE=CLICK SELECTOR="#page-speed-insights>DIV>FORM>DIV>DIV>DIV" BUTTON=0
I'm executing the following macro from inside VB.net using the iMacros component for .NET
VERSION BUILD=10.4.28.1074
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6900914
SET !WAITPAGECOMPLETE YES
WAIT SECONDS=10
TAG POS=1 TYPE=H1 ATTR=* EXTRACT=TXT
This retrieves the name of the manuscript from IEEE Xplore. This works perfectly from inside the iMacros browser/editor. But, when executing the script from inside Vb.net, it gives me a "#EANF#" (Extraction Anchor Not Found).
I'm confounded.
I found the problem.
The difference in behavior was because the site (here, IEEE Xplore), does not allow browsing from old browsers. Now, the iMacro browser works under IE 7's name. All you need to do is to add your program to the "browser emulation list", thus morphing your iMacros component browser to "look" like a newer browser for those websites that need it.
You'll find all the details on how to do that here:
How do I turn off Compatibility View on the IE WebBrowserControl in a WinForms app?
I'm having a hard time programming iMacros to click on one single button..
Please see the following page: http://iconosquare.com/viewer.php#/user/25025320/
I want iMacro to click the bottom button that says "MORE"
What "code" can I use to do that?
Thanks in advance!
Best regards.
How about this code?
TAG POS=1 TYPE=A ATTR=CLASS:more
I have a web where an image is shown and when clicked it starts the uploading process to upload picture. I would like to be able to check if this image exist but without clicking it. The TAG command seems to always click the element it selects. Is there any possibility to avoid this?
Thanks in advance.
use extract in tag command to prevent it from clicking, something like this:
tag pos=1 type=img attr=txt:* extract=txt