Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

youtube view bot not looking to hot

hey everyone, ive been trying to make a youtube viewbot that uses a proxy list, this is what i got:
Code
import urllib
import time
pfl = raw_input('enter name of proxy text file: ')
lnk = raw_input('enter youtube video link: ')
tm = raw_input('time(in sec) between views: ')
tm = int(tm)
lnk = str(lnk)
candidate_proxies = []
f = open(pfl, 'r+')
for line in f:
    line = str(line)
    candidate_proxies.append(line)
print('loaded proxies.. starting bot')
l = 1
while True:
    for proxy in candidate_proxies:
        l = str(l)
        print('views so far: ' + l)
        print("Trying HTTP proxy " + proxy)
        try:
            result = urllib.urlopen(lnk,
                                proxies={'http': proxy})
            print("Got URL using proxy " + proxy)
        except:
            print("Trying next proxy...")
        time.sleep(tm)
        l = int(l)
        l = l + 1

it doesn't seem to be adding views each time it goes to the website, but it seems to be working properly(haven't gotten any errors). can someone help me out with making this functional? because i'm kinda stuck :/

any help would be appreciated!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by SupermanHFDec 2, 2016 10:53 AM 11 849 Dec 2, 2016 10:53 AM
Last Post: Goodies
[.NET] by Raspi_3.14Jun 29, 2016 02:21 AM 30 862 Jun 29, 2016 02:21 AM
Last Post: IhabZ
[.NET] by BruhDec 5, 2014 03:34 PM 16 1,035 Dec 5, 2014 03:34 PM
Last Post: A ѕ ρ ι я є