Adf.ly BOT 1.0 10-06-2013, 01:53 AM
#1
Hey everyone 
I just wanted to share some random thing I have coded.
It's an adf.ly bot in python. It is slow, since I have not yet added multithreading to it, but it will come
The program depends on having a list of L1 (Elite) proxies,which it can load, and then connect to.
Dependencies:
Python 2.7
Python Selenium 2 (Link)
Selenium driver (Chrome)/and/or Chrome (Scan-DL)
I know this code could be made more efficient, but I just do not have time for it now.
Feel free to modify it, and use it for private.
Do not leech to outside the forum.
Do not sell the code. Let it be free
Do not claim this to be yours work, or I will find you
When I re-code it to be more efficient, I will create a new thread
Feedback appreciated, also, if you have some ideas, please share it, and I will add a shoutout on the code for you, as well as on the final product
PS:
It is best to leave it running over night, or when you do not use the PC, as it opens up a browser windows

I just wanted to share some random thing I have coded.
It's an adf.ly bot in python. It is slow, since I have not yet added multithreading to it, but it will come
The program depends on having a list of L1 (Elite) proxies,which it can load, and then connect to.Dependencies:
Python 2.7
Python Selenium 2 (Link)
Selenium driver (Chrome)/and/or Chrome (Scan-DL)
Code:
print '####################################################'
print '# Written by CamIce #'
print '# Adf.ly clicker v1.0 #'
print '# #'
print '####################################################'
from selenium import webdriver
from time import sleep
url = raw_input("Enter URL to get visits (With http://): ")
proxy_path = raw_input("Enter path to proxy file:")
with open(proxy_path) as f:
content = f.readlines()
f.close()
proxies = 0
with open(proxy_path) as infp:
for line in infp:
if line.strip():
proxies += 1
print 'Loaded %d proxies' %proxies
# For debugging purposes
#print content[run_through]
run_through = 1
while True:
#print "Start of loop"
print "Ran %s times" %run_through
try:
use_proxy = content[run_through]
except IndexError:
print "Out of proxies"
break
print "Using: %s" %use_proxy
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=%s' %use_proxy)
browser = webdriver.Chrome(chrome_options=chrome_options)
#print "Browser started"
try:
browser.get(url)
#print "Opened URL"
sleep(10)
browser.find_element_by_id('skip_button').click()
sleep(10)
browser.quit()
#print "Adding one to proxy count"
except Exception,e:
print "Skipping proxy. Error occured"
# For debugging, uncomment line below
#print str(e)
browser.quit()
run_through += 1
continue
run_through += 1
if run_through >= proxies:
print "No more proxies"
break
print 'Done!'I know this code could be made more efficient, but I just do not have time for it now.
Feel free to modify it, and use it for private.
Do not leech to outside the forum.
Do not sell the code. Let it be free
Do not claim this to be yours work, or I will find you
When I re-code it to be more efficient, I will create a new thread

Feedback appreciated, also, if you have some ideas, please share it, and I will add a shoutout on the code for you, as well as on the final product
PS:
It is best to leave it running over night, or when you do not use the PC, as it opens up a browser windows

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


![[Image: 5IN9GdK.png]](http://i.imgur.com/5IN9GdK.png)
thanks mate