I was trying to automate a script that depends from adf.ly (an ads service that force you to wait 5 second before redirect you the target page).
I was doing it in bash on a Raspberry PI so i can't use a greasemonkey script, i need it in bash or maybe in python.
Sure to find out something i spent 60 minutes on google looking for a solution: but i didn't find anything so i decide to do it myself.
Here you can find a little python script that needs as the first argument the adf.ly link and it returns the link without asking anything.
I'm running it on a Raspberry PI with Archlinux.
In order to execute it, you need:
You can install it in this way:
sudo pip2 install selenium wget https://github.com/hexid/phantomjs-linux-armv6h/raw/master/phantomjs-1.9.1-1-armv6h.pkg.tar.xz sudo pacman -U phantomjs-1.9.1-1-armv6h.pkg.tar.xz
Now, you can run it with:
python2.7 adf.ly.py http://adf.ly/s031F