Scrapebox + Automator : How to Grab links froms hundreds of websites ?

Hello,
I have Scrapebox and the premium plugin : Automator.
I have a text file with 800 domains (one domain per line).
I would like to Grab Links (function that is in Automator) of each domain one by one, with a level crawl of 4.
Now I manually create the task “Grab Link” several times.
So for 800 domains, I need to create this task in Automator 800 times with a different domain each time.
Does someone know how can I do in Automator to Grab links from 800 domains more quickly please ? Smile
Thank you very much Smile

Problem with Link extractor and Automator

Hello,

I made an automation process. It’s working but I have one random BUG. In the process, sometimes, the link extractor is blocked.
I make the link extraction of thousands of urls. After some hours it must be finished. The process is still running but there is still 1,2 or 3 “Connections” and it never finish. So I guess the program does not close the connexions and is waiting for the connexion to close to do the next step of the automator process. But the connexions are not closing.
I have to do a ctrl alt delete to kill the link extractor process.

First, I thought I had too much urls to extract from (millions) but it happens also when there is way less urls. I have the same problem in another scrapebox instance on another vps (windows server 2012 R2).

All my scrapebox are up to date.

Someone with the same problem ???

Please help me !!

Thanks

.jpg   probleme-scrapebox.jpg (Size: 389.58 KB / Downloads: 1)

Stateful Scripts in Automator?

Is there a way to run stateful bash scripts in automator?

I’m trying to run something depending if a file does or does not exist. With bash script alone in terminal the code below works and will show the correct output, depending on wether the file exists or not.

Only one line of output per run of the script is displayed either way.

FILE="/Volumes/Canvio1TB/EyeTV Archive/sync.ffs_lock" if test -f "$  FILE"; then     echo "$  FILE exists" else   echo "$  FILE does not exist" fi 

When I run this in automator as a “run shell script” action the output is:

/Volumes/Canvio1TB/EyeTV Archive/sync.ffs_lock exists

/Volumes/Canvio1TB/EyeTV Archive/sync.ffs_lock does not exist

Regardless of wether the file exists or not, the script generates both lines of output.

 

If there’s a better approach I’d be open to using it – I haven’t had success with the syntax of applescript running a command based on the (non)existence of a full path & file.

How to quit multiple application on mac using an automator app?

I made an application on Automator (app x) that launches few applications (app a,b,c). I was wondering instead of creating another application to quit the apps(app a,b,c), is there a way I can get Automator to quit those apps when I quit app x?

note: when I launch app x it doesn’t have the dot underneath it that indicates an application is active.

Automator: how to clear ‘got’ items?

I’ve created an Automator workflow which (should) create a copy of a particular file in the currently selected folder. (i.e. select a folder, run the Quick Action, get a copy of the file in the folder.

However, when I run the Quick Action, I get the file and TWO copies of the folder itself, within itself. They are not links (I think), but I get a couple of iterations.

Here’s the workflow: enter image description here

I’m thinking that the variable “Path” is copying itself, for some reason. Possibly because it’s been “Got”. Is there a way to clear the “get”?

Even if I remove the “Get Selected Finder Items” action, I still get one copy of the folder.

How do I get Automator to move a folder to Appname.app/Contents/etc

I’m trying to create an Automator Quick Action to move a selected folder into the Resources folder of an app, accessed by clicking Show package contents in the Applications folder.

There doesn’t seem to be a way to move the folder there. I’ve tried Move Finder Items, but it doesn’t allow me to select an app’s package contents.

The closest I’ve gotten is to just drag the folder into Automator, and then store it in a variable, but for some reason, storing a value in one variable stores it in the other as well, which is really weird and prevents me from using this method.

Is there a way to do this, and if so, how would it be done?

Automator and/or AppleScript to automatically Command-F2 to enter Target Display Mode

I’m trying to use Automator with AppleScript to automatically hit Command + F2 to enter Target Display Mode. The script runs but I just get a beep/tone with no action. I don’t know if there’s an error in the script or if it’s not capable of hitting a function key.

on run {input, parameters}      tell application "System Events"         key down {command}         keystroke "120"         key up {command}     end tell return input end run 

Once I get this working I’ll need to somehow schedule this to run on startup or maybe on a schedule. I’ve seen some threads on this but never an actual solution. I’m using a 2011 iMac as a secondary monitor and hate hitting Command + F2 every day.

error with automator applescript “do shell script” call (file not found) yet command line with same command works

I have a simple automator app that runs a simple script. It uses ssh to open a file on the local machine, MachineA, with an app on the remote machine, MachineB, and logs the ssh call.

on run {input, parameters}     repeat with fn in input         set fn to POSIX path of fn         set fn to "/Volumes/MachineA" & fn         set fn to "\"/usr/bin/open -a /Applications/Preview.app " & fn & "\""         set cmd to "ssh -x MachineB.local " & quoted form of fn         do shell script "echo " & cmd & " >> ~/cmd.log"         do shell script cmd     end repeat end run 

The log output is:

ssh -x MachineB.local "/usr/bin/open -a /Applications/Preview.app /Volumes/MachineA/Users/<USER>/Documents/<FOLDER>/<FILE>.pdf" 

When I use the app to open a file (drag & drop), an error is thrown.

error message

However, if I copy the output in the log file to the command line, success, the file is opened on the remote machine. Why the difference?

Free version of Social Media Automator

Hey,

I just found that there is a free version of SMM automator software, available at Zamanto, so I tried it and it works as it should. It is limited to 10 social accounts though. But other than that, it's a great tool to automate just about everything you do on social sites (FB, Tw, IG, YT).

So I decided to share it here, hope it's ok: zamanto[.]com/filebox/file283.html

Take care!

Using automator with python script that requires user input during Spotify API authentication process

I have a script that gets name, artist, and spotify ID of the currently playing song, and add the track to a pre-defined spotify playlist.

To make the process of running the script a bit easier, I wanted to use an Automator workflow to run the script and post a notification saying that the song has been added.

For reference, the python script looks like this (with private info taken out)

import spotipy import spotipy.util from pprint import pprint  # Log in client_id = "" client_secret = "" redirect_uri = "http://google.com/" username = "" scope = ["playlist-modify-private",          "user-read-currently-playing"]  scope = " ".join(scope) token = spotipy.util.prompt_for_user_token(username, scope, client_id=client_id, client_secret=client_secret, redirect_uri=redirect_uri) sp = spotipy.Spotify(auth=token)  # Get current song and add it to the playlist plid = "" track = sp.current_user_playing_track()  if track:     tid = track["item"]["id"]     name = track["item"]["name"]     artist = track["item"]["album"]["artists"][0]["name"]     msg = "Added '{}' by '{}' to the playlist!".format(name, artist) else:     msg = "No song playing"  print(msg) sp.user_playlist_add_tracks(username, plid, [tid]) 

The authentication gives a token, but the first time I need to interact with the browser to agree to that the script can perform the actions defined by the scopes. I am redirected in to a URL, and I need to copy this URL back to the script to complete the authentication. I thought I could simply do this manually by running the script from the terminal when I arrive at work, and then simply invoke the Automator workflow whenever a good song was playing.

The problem seems to be that the Automator workflow starts a new session (or whatever the terminology is), and I need to interact with the browser again, and it throws this error (with my username removed):

The action “Run Shell Script” encountered an error: “Traceback (most recent call last):   File "/Users/.../Documents/github/personal_scripts/add_playing_track_to_playlist.py", line 14, in <module>     token = spotipy.util.prompt_for_user_token(username, scope, client_id=client_id, client_secret=client_secret, redirect_uri=redirect_uri)   File "/Users/.../anaconda2/lib/python2.7/site-packages/spotipy/util.py", line 80, in prompt_for_user_token     response = raw_input("Enter the URL you were redirected to: ") EOFError: EOF when reading a line” 

Is there a way to get the Automator workflow to work?