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

Python 

Python 3.4 youtube view bot

Hello HackForums recently I have been learning python and decided which better way to start out than to create a view bot, I currently have a menu system and am using the "webbrowser" import and "random" import I have ran across a few problems and was wondering if anyone could help me out please PM me if you wouldnt mind helping.
Instead of PMing you - I'd be willing to help you if you PM me your skype username 🤝

Hope I'll help,

- Ewil
(May 16, 2016 09:40 PM)EwilDave Wrote:  Instead of PMing you - I'd be willing to help you if you PM me your skype username 🤝

Hope I'll help,

- Ewil

My skype is supahmanhf, found out I was unable to PM.
bro when you finish the view bot can i get it ?
This is better done in c#.
You will have to use HTTP Proxies or youtube will not count the views, so you must have support for HTTP Proxies.
You may have to simulate the actual viewing (like go to the website, why c# is better because you can use a WebBrowser)
If not, you may have to use WebRequests(May be illegal[DoS] but again, c# can do this easily)
Personally I think python won't work well with this.
Good luck though ;)
(May 20, 2016 06:09 PM)personuhpoizon Wrote:  This is better done in c#.
You will have to use HTTP Proxies or youtube will not count the views, so you must have support for HTTP Proxies.
You may have to simulate the actual viewing (like go to the website, why c# is better because you can use a WebBrowser)
If not, you may have to use WebRequests(May be illegal[DoS] but again, c# can do this easily)
Personally I think python won't work well with this.
Good luck though ;)

What are you even talking about? Everything you mentioned can be done in Python with half as much code as C#.
(May 20, 2016 06:09 PM)personuhpoizon Wrote:  This is better done in c#.
You will have to use HTTP Proxies or youtube will not count the views, so you must have support for HTTP Proxies.
You may have to simulate the actual viewing (like go to the website, why c# is better because you can use a WebBrowser)
If not, you may have to use WebRequests(May be illegal[DoS] but again, c# can do this easily)
Personally I think python won't work well with this.
Good luck though ;)

As said, I was using webbrowser import, thanks for the support anyways man.
Depends whether you want to visually show it on system, or wan't to make a faster and not visual connection, I would highly recommend using Mechanize, since it is very easy to setup and can be done for a lot of tasks. ( Although there are a lot of kind of hard alternatives, like sockets, etc. ).

Code
import mechanize
from multiprocessing import Process

br = mechanize.Browser() # Define object as Browser.
br.addheaders = [("User-agent","Mozilla/5.0")] # Add this main user agent Headers, to get job done.
link = ("Type youtube link here")

# Now lets make it fast, by trying 3 loops, and multithreading them.

def connect1():
    while ( True ):
        br.open(link)

def connect2():
    while ( True ):
        br.open(link)

def connect3():
    while ( True ):
        br.open(link)

# 3 loops would be fair enough to get a lot of views in few seconds.

if __name__=='__main__':
    # Now lets define functions as threads and start them.
    p1 = Process(target = connect1)
    p2 = Process(target = connect2)
    p3 = Process(target = connect3)
    p1.start()
    p2.start()
    p3.start()

But this would not really work when youtube reaches 300 views, you can also use proxy headers easily afterwards, I can set it up for you, if you want pm me.



(May 20, 2016 06:09 PM)personuhpoizon Wrote:  This is better done in c#.
You will have to use HTTP Proxies or youtube will not count the views, so you must have support for HTTP Proxies.
You may have to simulate the actual viewing (like go to the website, why c# is better because you can use a WebBrowser)
If not, you may have to use WebRequests(May be illegal[DoS] but again, c# can do this easily)
Personally I think python won't work well with this.
Good luck though ;)

I think thats a very low level thinking as programmer to say Python is bad in web scraping. ( Actually, it is considered by many programmers to be number 1, it is arguable, but, you can't say that python is not capable of that), It can do it way quicker and faster than C#, You can actually do everything in Python, including crypter, But web scraping is Python's popular features.

and you don't really need proxy header unless it reaches 300 views.
(May 31, 2016 12:02 PM)MrRoxingMachine Wrote:  Depends whether you want to visually show it on system, or wan't to make a faster and not visual connection, I would highly recommend using Mechanize, since it is very easy to setup and can be done for a lot of tasks. ( Although there are a lot of kind of hard alternatives, like sockets, etc. ).

Code
import mechanize
from multiprocessing import Process

br = mechanize.Browser() # Define object as Browser.
br.addheaders = [("User-agent","Mozilla/5.0")] # Add this main user agent Headers, to get job done.
link = ("Type youtube link here")

# Now lets make it fast, by trying 3 loops, and multithreading them.

def connect1():
    while ( True ):
        br.open(link)

def connect2():
    while ( True ):
        br.open(link)

def connect3():
    while ( True ):
        br.open(link)

# 3 loops would be fair enough to get a lot of views in few seconds.

if __name__=='__main__':
    # Now lets define functions as threads and start them.
    p1 = Process(target = connect1)
    p2 = Process(target = connect2)
    p3 = Process(target = connect3)
    p1.start()
    p2.start()
    p3.start()

But this would not really work when youtube reaches 300 views, you can also use proxy headers easily afterwards, I can set it up for you, if you want pm me.




I think thats a very low level thinking as programmer to say Python is bad in web scraping. ( Actually, it is considered by many programmers to be number 1, it is arguable, but, you can't say that python is not capable of that), It can do it way quicker and faster than C#, You can actually do everything in Python, including crypter, But web scraping is Python's popular features.

and you don't really need proxy header unless it reaches 300 views.

This is a very old thread and I just got back after a while but as soon as I have 25 posts ill pm you, thanks.
Well if your running Linux and have tor you can use the Tor's network to send requests.
I'm pretty sure Youtube uses some weird thing to keep this from happening but here some code to get you started

Exp.

from stem import Signal #pip install stem for module
from stem.control import Controller
import requests # pip install requests
import threading

def tor_connection():
with Controller.from_port(port = 9051) as controller: # Make sure you have Tor open and running
controller.authenticate() # Connects

def tor_new_identity():
controller.signal(Signal.NEWNYM) # Gets a new IP/Identity, don't do this to fast, hurts Tor :'(

def bots():
y = 0
headers = {"user-agent" : "google user-agent header and put that here"}
while True:
if y == 10:
tor_new_identity()
y = 0
x = requests.get("url", headers=headers) # Probably won't work but whatever, I haven't tried

def threads():
for x in range(0, 9) #Start 9 threads, don't to may :P
thrd1 = threading.Thread(target=bots)
thrd1.start()

tor_connection()
threads()
(May 31, 2016 12:02 PM)MrRoxingMachine Wrote:  Depends whether you want to visually show it on system, or wan't to make a faster and not visual connection, I would highly recommend using Mechanize, since it is very easy to setup and can be done for a lot of tasks. ( Although there are a lot of kind of hard alternatives, like sockets, etc. ).

Code
import mechanize
from multiprocessing import Process

br = mechanize.Browser() # Define object as Browser.
br.addheaders = [("User-agent","Mozilla/5.0")] # Add this main user agent Headers, to get job done.
link = ("Type youtube link here")

# Now lets make it fast, by trying 3 loops, and multithreading them.

def connect1():
    while ( True ):
        br.open(link)

def connect2():
    while ( True ):
        br.open(link)

def connect3():
    while ( True ):
        br.open(link)

# 3 loops would be fair enough to get a lot of views in few seconds.

if __name__=='__main__':
    # Now lets define functions as threads and start them.
    p1 = Process(target = connect1)
    p2 = Process(target = connect2)
    p3 = Process(target = connect3)
    p1.start()
    p2.start()
    p3.start()

But this would not really work when youtube reaches 300 views, you can also use proxy headers easily afterwards, I can set it up for you, if you want pm me.




I think thats a very low level thinking as programmer to say Python is bad in web scraping. ( Actually, it is considered by many programmers to be number 1, it is arguable, but, you can't say that python is not capable of that), It can do it way quicker and faster than C#, You can actually do everything in Python, including crypter, But web scraping is Python's popular features.

and you don't really need proxy header unless it reaches 300 views.

I created my own YouTube View bot in Python it works perfect but only problem is it doesn't change my ip not sure what is blocking it but if you could pm that would be sweet im willing to give you my YouTube bot when i get it working
This may not be the easiest thing to do with raw requests, by the way, because YT has pretty strict rules on what counts as a view. It's definitely not just a simple rendering of a web page. You need to actually stream video. The best way would probably be with selenium or mechanize or something along those lines.
SRPP Discord Server

I am a professional network/cloud security architect.
My Old Tutorials


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 631 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[.NET] by Raspi_3.14Jun 29, 2016 02:21 AM 30 862 Jun 29, 2016 02:21 AM
Last Post: IhabZ
[Python] by jay1994Jan 29, 2015 09:59 AM 0 92 Jan 29, 2015 09:59 AM
Last Post: jay1994