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.
|
Python
Python 3.4 youtube view bot |
(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 🤝 My skype is supahmanhf, found out I was unable to PM.
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#. 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#. As said, I was using webbrowser import, thanks for the support anyways man.
May 31, 2016 12:02 PM
(This post was last modified: May 31, 2016 12:10 PM by MrRoxingMachine.)
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 mechanizeBut 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#. 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. ). 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. ). 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 |
|
|


