Git Product home page Git Product logo

youtube-subpals-bot's Introduction

YouTube-Subpals-bot

What's this? --- A simple bot to automate the process on SubPals.

SubPals is a website which offers you to like and subscribe 20 youtube videos, and you will get 10 new subscribers (it works).

I created a bot using Python and Selenium that completes the task for us.

Register manually at Subpals and then you will be able to run my bot.


REQUIREMENTS: Selenium, Chrome Webdriver.

[+] How to get Selenium? --- Open the cmd and run "pip install selenium"

[+] How to get Chrome Webdriver? --- You can download it from here : https://sites.google.com/a/chromium.org/chromedriver/downloads. (I've got 2.38.552522 version)


5 TO DO'S:

  1. Make sure ChromeDriver is in the same folder as the script.
  2. Insert Your channel ID.
  3. Insert Your channel password.
  4. Insert Your email.
  5. Insert Your email password.

Then you can run and enjoy with your new subscribers!

youtube-subpals-bot's People

Contributors

leandrolimapro avatar orelsaada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

youtube-subpals-bot's Issues

Launch error

Hello, I am stuck at this error:
DevTools listening on ws: //127.0.0.1: 57468 / devtools / browser / bb2e5809-9d6e-4642-8ac3-c10033131a14
[0724 / 171351.075: INFO: CONSOLE (0)] "A cookie associated with a cross-site resource at http://500053.stats.ryzeo.com/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite = None and Secure. You can review cookies in developer tools under Application> Storage> Cookies and see more details at https://www.chromestatus.com / feature / 5088147346030592 and https://www.chromestatus.com/feature/5633521622188032. ", source: https://www.subpals.com/ (0)
Could you help me? thank you !

Popup not found

[+]Logged to SubPals.[+]
[+]Plan is already activated.
[+] 7 videos [+]
[X]Popup not found

Process finished with exit code 0

error when launching

it leaves this error :
DevTools listening on ws://127.0.0.1:1180/devtools/browser/d8c9e40a-1590-4eb9-9993-41bf72be90ca
[0607/192655.606:ERROR:devtools_http_handler.cc(292)] Error writing DevTools active port to file
[0607/192655.743:ERROR:simple_backend_impl.cc(81)] Failed to create directory: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\js
[0607/192655.750:ERROR:simple_backend_impl.cc(81)] Failed to create directory: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\wasm
[0607/192655.756:ERROR:disk_cache.cc(184)] Unable to create cache
[0607/192655.756:ERROR:simple_backend_impl.cc(81)] Failed to create directory: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\wasm
[0607/192655.757:ERROR:simple_backend_impl.cc(81)] Failed to create directory: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\js
[0607/192655.757:ERROR:shader_disk_cache.cc(606)] Shader Cache Creation failed: -2
[0607/192655.758:ERROR:simple_backend_impl.cc(757)] Simple Cache Backend: wrong file structure on disk: 1 path: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\wasm
[0607/192655.760:ERROR:simple_backend_impl.cc(757)] Simple Cache Backend: wrong file structure on disk: 1 path: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\js
[0607/192655.761:ERROR:simple_backend_impl.cc(81)] Failed to create directory: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\wasm
[0607/192655.762:ERROR:simple_backend_impl.cc(81)] Failed to create directory: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\js
[0607/192655.764:ERROR:simple_backend_impl.cc(81)] Failed to create directory: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\wasm
[0607/192655.765:ERROR:simple_backend_impl.cc(81)] Failed to create directory: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\js
[0607/192655.765:ERROR:simple_backend_impl.cc(757)] Simple Cache Backend: wrong file structure on disk: 1 path: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\js
[0607/192655.767:ERROR:disk_cache.cc(184)] Unable to create cache
[0607/192655.767:ERROR:simple_backend_impl.cc(757)] Simple Cache Backend: wrong file structure on disk: 1 path: C:\Program Files\Google\Chrome\Application\91.0.4472.77\YOUR DIR CHROME PROFILE\Default\Code Cache\wasm
[0607/192655.773:ERROR:disk_cache.cc(184)] Unable to create cache

please help

error

[0825/211333.569:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at http://500053.stats.ryzeo.com/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.", source: https://www.subpals.com/ (0)
Traceback (most recent call last):
File "main.py", line 29, in
login_register = driver.find_element(By.XPATH,'//[@id="mega-menu-item-32613"]/a')
File "C:\Users\user\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\user\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\user\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//
[@id="mega-menu-item-32613"]/a"}
(Session info: headless chrome=84.0.4147.135)

[SOLUTION] I already solved recaptcha

resolved and requested a merge, check the pull request

I solved problems of:
-recaptcha
-erroneous or nonexistent processes
-popup change
-default chrome profile

problem help me please

DevTools listening on ws://127.0.0.1:53138/devtools/browser/2471d56f-2491-4e76-ab7c-27d5ea01c5d0
Traceback (most recent call last):
File "C:\Users\Ban-bang\Desktop\youtube\YouTube-Subpals-bot-master\main.py", line 49, in
driver = webdriver.Chrome(driver_folder, options=option)
File "C:\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in init
RemoteWebDriver.init(
File "C:\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "C:\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 88
Current browser version is 91.0.4472.114 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

Element Not Clickable

Error:
DevTools listening on ws://127.0.0.1:50629/devtools/browser/9a3858b2-aeca-4312-8286-754a400ed5c8
[+]Logged to SubPals.[+]
[+]Plan is already activated.
[+] 20 videos [+]
Traceback (most recent call last):
File "C:\Users\SamzyDev\Desktop\YouTube-Subpals-bot-master\Main.py", line 67, in
driver.find_element_by_xpath("//*[@id='likeSub2']/a").click()
File "C:\Users\SamzyDev\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "C:\Users\SamzyDev\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "C:\Users\SamzyDev\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\SamzyDev\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element ... is not clickable at point (168, 582). Other element would receive the click: ...
(Session info: headless chrome=90.0.4430.212)

error showing

[0416/191750.201:INFO:CONSOLE(8)] "[iFrameSizer][Host page: zt-popup] IFrame has not responded within 5 seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.", source: https://www.subpals.com/wp-content/plugins/steempress/public/js/iframeResizer.min.js?ver=5.4 (8)
[0416/191751.322:INFO:CONSOLE(0)] "A cookie associated with a cross-site resource at http://500053.stats.ryzeo.com/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.", source: https://www.subpals.com/ (0)
[0416/191800.480:INFO:CONSOLE(3)] "Uncaught RangeError: Maximum call stack size exceeded.", source: https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js (3)
[0416/191800.524:INFO:CONSOLE(3)] "Uncaught RangeError: Maximum call stack size exceeded.", source: https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js (3)
[0416/191800.556:INFO:CONSOLE(3)] "Uncaught RangeError: Maximum call stack size exceeded.", source: https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js (3)
Traceback (most recent call last):
File "n.py", line 41, in
driver.find_element_by_name('password').send_keys(channel_pass) # Channel password
File "C:\Users\guntr\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 496, in find_element_by_name
return self.find_element(by=By.NAME, value=name)
File "C:\Users\guntr\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\guntr\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\guntr\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[name="password"]"}
(Session info: headless chrome=81.0.4044.113)

I'm confused

Can you explain the instructions more thoroughly. I'm a new windows user and don't know much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.