Bitcoin Forum
August 02, 2024, 01:34:17 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CoinURL Bot, Mac or Linux  (Read 5817 times)
Lattis_ (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
December 06, 2013, 03:27:25 AM
Last edit: December 07, 2013, 05:01:49 PM by Lattis_
 #1

CoinURL Bot, Mac or Linux v[1.0]

So, I was looking around the web for CoinURL bots, but all I found were really shitty ones that get you 1 per day.  Well, now here is a simple shell script that will fix that problem.  It uses the CoinURL API to make a new link and then opens that link with your default web browser.    Theoretically, it only makes about 5.30 USD a day (as of now, 5/12/13), but hey, it's better than 1 click a day!

Usage:
 -h - show help message and exit
 -u <uuid> - specify unique user id
 -l <number of times> - limit the number of times the script will loop (default: 10000)
 -b <browser> - browser to open the links in (default: default browser)

Example usage: coinURL -u 529d189542657801002944 -l 10 -b Safari

Requirements: cURL (http://curl.haxx.se)
                     bash v3.2 or greater (It will probably work with lower versions of bash, but I haven't tested those.)

Download the Script
Or
Copy the Script:
Code:
#!/bin/bash
function help_ {
echo " -h - show help message and exit"
echo " -u <uuid> - specify unique user id"
echo " -l <number of times> - limit the number of times the script will loop (default: 10000)"
echo " -b <browser> - browser to open the links in (default: default browser)"
}
function launch_ {
if [[ -n $* ]]; then
while [[ -n $* ]]; do
if [[ $1 = -u ]]; then
uuid=$2
shift 2
elif [[ $1 = -h ]]; then
help_
exit
elif [[ $1 = -b ]]; then
browser=$2".app"
browser_proc=$2
shift 2
elif [[ $1 = -l ]]; then
limit=$2
shift 2
fi
done
else
help_
exit
fi
if [[ -z $limit ]]; then
limit=10000
fi
num=0
randid=$RANDOM
}
function pull_ {
while true; do
killall $browser_proc
url=$(curl -s -S "https://coinurl.com/api.php?uuid="$uuid"&url=https://www.google.com/$randid/$num")
echo -en "\rNumber of urls generated: $num | Current URL: $url"
((num++))
open -g -a $browser "$url"
sleep 4
if [[ $num -gt $limit ]]; then
break
fi
done
}
launch_ $* && pull_

Donations, if you're feelin' it: 17urVePyd4wEwtE91ibdQyWmgH8nvRdVoe

If it doesn't seem to be clicking your links, try increasing the sleep time from "sleep 4" to "sleep x", where x is the number of seconds between loops.  If your computer is loading the pages really fast, try decreasing the sleep time!

P.S. Please report any issues and I will try to fix them promptly!
tvshowz1305
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile WWW
January 24, 2014, 11:45:25 PM
 #2

hello,i downloaded the curl,but dont know how to use it with script,please teach me and be sure to receive a donation from me when this works for me..Thank you
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!