Reputation: 3
I've recorded a macro to run on a specific url.
How do I run the same macro on multiple list of URLs (around 100 URLs)?
Note: The URLs are stored in a text file.
Upvotes: 0
Views: 3355
Reputation: 655
1)Change extension of url file to .csv
ans save it to the imacro directory:
2) Add this code to your existing code and Play As Loop
:
TAB T=1
SET !LOOP 1
SET !DATASOURCE urls.csv
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO={{!COL1}}
explanation: open datasource, loop over it's lines and for each line go to the url at Column1 (if you want more info per site like user and pass you can add at the csv file like url,user,pass and use COL2
and COL3
for the user and pass info)
Upvotes: 4