![]() |
|
Adf.ly BOT 1.0 - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Python (https://sinister.li/Forum-Python) +--- Thread: Adf.ly BOT 1.0 (/Thread-Adf-ly-BOT-1-0) Pages:
1
2
|
Adf.ly BOT 1.0 - TechSaavy - 10-06-2013 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) 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 RE: Adf.ly BOT 1.0 - mig4ng - 10-06-2013 Sincerely I've already listen more than once that adf.ly is scamming only... But thanks for sharing... RE: Adf.ly BOT 1.0 - TechSaavy - 10-06-2013 (10-06-2013, 04:26 PM)mig4ng Wrote: Sincerely I've already listen more than once that adf.ly is scamming only... -_- my bad, thanks for informing me. I'll probably re-do it to an youtube BOT, or something xD RE: Adf.ly BOT 1.0 - mig4ng - 10-06-2013 (10-06-2013, 08:25 PM)CamIce Wrote: -_- my bad, thanks for informing me. No problem, I'd like that youtube bot ^^ RE: Adf.ly BOT 1.0 - TechSaavy - 10-06-2013 Kind of have it already, but I lack a good L1 proxy list with more than 100 working proxies to test it properly xD RE: Adf.ly BOT 1.0 - Ghost - 10-08-2013 Thanks for the share looks good im taking a course on python right now soon maybe ill actually understand that code fully! RE: Adf.ly BOT 1.0 - TechSaavy - 10-08-2013 I might recommend you tutorialspoint.com . From my point of view, they have pretty good tutorials. Except for that, I recommend you reading the doc for python
RE: Adf.ly BOT 1.0 - VrOcKs - 09-28-2016 Hope this works thanks mate
RE: Adf.ly BOT 1.0 - Throwiee - 10-01-2016 IF this works I would be so grateful.
RE: Adf.ly BOT 1.0 - genitive - 10-09-2016 I would rather build a headless bot doe ![]() Thanks for the share |