Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% WORKING SOLUTION !!! #588

Open
2 of 4 tasks
Znotrovitsk opened this issue Aug 23, 2023 · 87 comments
Open
2 of 4 tasks

100% WORKING SOLUTION !!! #588

Znotrovitsk opened this issue Aug 23, 2023 · 87 comments

Comments

@Znotrovitsk
Copy link

Znotrovitsk commented Aug 23, 2023

Is there an existing issue for this?

  • I have searched the existing issues

I'm submitting a ...

Description

Hello Beloved Friends! finally i found a solution for drop views issues the overall problem is with google chrome user agent i start using firefox user agent and is working (same using chrome browser the problem is only chrome user agent) 100% no drop for me

Thats all good people i hope this can help.

:)

Environment

- OS : 
- Python : 
- Script version :

config.json

:)
@stark1ng
Copy link

ho to replace chrome to firefox?

@Znotrovitsk
Copy link
Author

Znotrovitsk commented Aug 23, 2023

@stark1ng i used an extension for user agent switcher i still using google chrome the problem is not the browser but the user agent, i dont know why this happens but work for me

@MShawon
Copy link
Owner

MShawon commented Aug 23, 2023

@Znotrovitsk which extension you used? Did you put it in the custom extension folder? Share your settings so that other people can test and confirm from their ends too.

And for how many days your views are staying?

@Znotrovitsk
Copy link
Author

Znotrovitsk commented Aug 23, 2023

Hi @MShawon now i'm traveling but i used this extension: https://chrome.google.com/webstore/detail/random-user-agent-switche/einpaelgookohagofgnnkcfjbkkgepnp

I Have tested with 500 views 6 days ago, and the views still stayed there.

Before run need to open the browser after click in the extension and click in the firefox icon for just generate firefox user agents. After that need to open the extension config and uncheck the box ´´Automatically change the User-Agent after especified period of time´´, save and well done!

A little complex but worked for me.

anything contact me

thx

@taran0026
Copy link

@Znotrovitsk Which proxies are you using for this and how many?

@Znotrovitsk
Copy link
Author

Znotrovitsk commented Aug 23, 2023

Hi @taran0026 I'm using 1000 IPV6/HTTPS proxy from https://proxy-seller.com

Make sure for only use good proxy dont public or tor proxyes

If you will choose a plan use this promo code for earn discount and support me: ZTWKST_633912

Thx

@taran0026
Copy link

taran0026 commented Aug 23, 2023

@Znotrovitsk Thanks for the info. I'd say let's wait for some more time as I have read youtube can delete views upto two weeks after. Let's hope the views stick. Keep us updated!

And can you explain this in detail please?
"Before run need to open the browser after click in the extension and click in the firefox icon for just generate firefox user agents. After that need to open the extension config and uncheck the box ´´Automatically change the User-Agent after especified period of time´´, save and well done!"

@kattstof
Copy link

kattstof commented Aug 24, 2023

@MShawon :

after reading the /src and trying to make sense of alot of it (Readability counts!)

the chromedriver isn't properly switching user-agents between instances and is what's causing it to be detected (you should explicitly set it from a list of useragents instead of using from fake_headers import Headers, browsers)

what you need to do is everytime a chromedriver is open change the header user-agent

Specificly (atleast i think this would be the code to change)

header = Headers(
browser="chrome",
os=os.name,
headers=False
).generate()
agent = header['User-Agent']

should be more like this:
#put list of user agents in header (in this example i use 2)
header = ["Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.0.10) Gecko/2009042513 Linux Mint/5 (Elyssa) Firefox/3.0.10", "Opera/12.0(Windows NT 5.1;U;en)Presto/22.9.168 Version/12.00"]
#choose random
user_agent = random.choice(header)
#set explicitly
headers = {"user-agent": user_agent}

this still doesn't fix the 404 error when trying to use newer version of chrome so until that's fixed you would have to use a downgraded version

again i've only done a minor look at your code so i'm not sure if its a fault in the fake_headers package or if your code just isn't properly setting the user-agent using fake_headers

cheers! and if you need any more help i can take a deeper look

@stark1ng
Copy link

@MShawon :

after reading the /src and trying to make sense of alot of it (Readability counts!)

the chromedriver isn't properly switching user-agents between instances and is what's causing it to be detected (you should explicitly set it from a list of useragents instead of using from fake_headers import Headers, browsers)

what you need to do is everytime a chromedriver is open change the header user-agent

Specificly (atleast i think this would be the code to change)

header = Headers( browser="chrome", os=os.name, headers=False ).generate() agent = header['User-Agent']

should be more like this: #put list of user agents in header (in this example i use 2) header = ["Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.0.10) Gecko/2009042513 Linux Mint/5 (Elyssa) Firefox/3.0.10", "Opera/12.0(Windows NT 5.1;U;en)Presto/22.9.168 Version/12.00"] #choose random user_agent = random.choice(header) #set explicitly headers = {"user-agent": user_agent}

this still doesn't fix the 404 error when trying to use newer version of chrome so until that's fixed you would have to use a downgraded version

again i've only done a minor look at your code so i'm not sure if its a fault in the fake_headers package or if your code just isn't properly setting the user-agent using fake_headers

cheers! and if you need any more help i can take a deeper look

Thanks for you app. The best solution to work is Chrome Version 114.0.5735.199. difficult to find for linux this version.

@stark1ng
Copy link

My solution! Works nice.
Testing on Windows 10,11, Linux Mint, Arch
Install everything for python3, windows users the same and c++ v14 or greater from visual studio https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019

then install latest chrome 116. ..... for linux users please install from aur=arch linux or from official website for Debian based distros. please do not install from flathub. Make chrome default browser
then download chromedriver (https://chromedriver.chromium.org/downloads/version-selection)
for chrome 116 use this link https://googlechromelabs.github.io/chrome-for-testing/
select your chromedriver version
for linux use this: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
exctract chromedriver file to youtube-vewer folder
run!

@taran0026
Copy link

@stark1ng How long have the views stayed?

@sssaaalah102
Copy link

hello i test mozilla with defrante user agent and http proxy and with https ipv6 proxy not work for me aftre 48 h views delate

@sssaaalah102
Copy link

@stark1ng
@MShawon
@taran0026
all time youtube delate my views i test all chrome version i test Mozilla i test all proxy ... same problem

and i need boot for auto upload short video if possible

@sssaaalah102
Copy link

and in this bot chromedriver 115 https://github.com/PatrickAcheson/automate_youtube_shorts

@taran0026
Copy link

@sssaaalah102 Did you try @Znotrovitsk 's solution?

@kattstof
Copy link

changed the code on my local version to explicitly set the user-agent from a list of 4k+ random user agents

some of the views stay some of them get deleted

which tells me that youtube is flagging some user-agents as problematic or potential bots and others are not flagged at all

Bing did the same thing a few years ago that broke a few of my personal automated scripts ... the only solution was to up the amount of user-agents it pulls from and figure out which ones were flagged

or you could just let it auto-delete the flagged ones while keeping the ones that aren't flagged

either-way i ended up using this script as a base for my own script but using selenium + Firefox and randomly changing user-agent and haven't had 1 view delete
when using chrome some get deleted some don't -- which again, means some user-agents are being flagged as potential bots while others are flagged as 'fine' and 'legitimate'

as far as the above claim of using an addon to change the user agent -- that actually won't work as selenium uses options to set addons and without setting the addon in the options like so:
chrome_options = Options()
chrome_options.add_extension('path_to_extension')
the addon wont be loaded by selenium

@sssaaalah102
Copy link

@kattstof how can add list of user agent in script !!

@sssaaalah102
Copy link

Is there a solution ???? @kattstof @MShawon @stark1ng @taran0026 @Znotrovitsk

@Znotrovitsk
Copy link
Author

@sssaaalah102 what has working good now is using Selenium + Firefox. We need wait for a new update by @MShawon

@Znotrovitsk
Copy link
Author

@kattstof If it's not a problem for you try to talk with mshawon explaining what the code needs to work properly

thx for your help!

@taran0026
Copy link

@Znotrovitsk Are you using the same method that you mentioned above? And have the views stayed till now(the ones that you mentioned above)?

@Znotrovitsk
Copy link
Author

@taran0026 Worked well, all the views stayed. But we need a new script because this extension always start in default mode for each instance and in the default mode the user agent change automatically after 600s (10min) in this extension, this means
for videos bigger than 10min if the instance dont close before 10min the user agent will change automatically when the video still playing, and youtube will delete the view. We need only fix the script for change user agent correct in each instance without this extension.

This will fix the problem, but the ideal thing is replace the script for running with firefox it's will work for a long time with firefox without problems!

@Znotrovitsk
Copy link
Author

After that we need a big list with recent user agent i think they are more “ reliable “ by youtube.

@taran0026
Copy link

Does the extension work in every new instane?

@Znotrovitsk
Copy link
Author

@taran0026 yes

@taran0026
Copy link

Do we need to buy the user agents or something like that?

@Znotrovitsk
Copy link
Author

idk, with the extension work perfectly and the extension used free list

@Znotrovitsk
Copy link
Author

The ideal is fix the script i will wait for mshawon new update.

@Znotrovitsk
Copy link
Author

How i said above the perfect world here is replace all in firefox.

@taran0026
Copy link

User agents are strings, text defining the browser, version, device... I think that can be found easily.

@abhishekdeshkar
Copy link

abhishekdeshkar commented Sep 11, 2023

@JijaProGamer got it. I will try to integrate Firefox driver in my existing python script. Let's see how it goes.

Can you also share your Discord username ?

@Znotrovitsk
Copy link
Author

hi guys, im later sorry i think the problem here is not the script but the proxys, after i changed IPV4 proxys for IPV6 i dont face any problem with drop views (same using last chrome version and old script) try to test only with IPV6 proxy @MShawon

@AeroMonkie
Copy link

Where did you buy your IPv6 from?

@Znotrovitsk
Copy link
Author

@AeroMonkie I buy from https://proxy-seller.com/

If you will choose a plan with they use this promo code for earn discount and support me: ZTWKST_633912

Thx

@AeroMonkie
Copy link

@AeroMonkie I buy from https://proxy-seller.com/

If you will choose a plan with they use this promo code for earn discount and support me: ZTWKST_633912

Thx

So how many days has it been since you sent those views? Has it been over 7 days?

@Znotrovitsk
Copy link
Author

@AeroMonkie 30 days

@CBZAS
Copy link

CBZAS commented Sep 13, 2023

@AeroMonkie 30 days

Can you boost multiple videos on the same channel with the same ipv6 proxies without youtube detecting it? and for how long you rent these proxies?

@Znotrovitsk
Copy link
Author

@CBZAS Yes can boost multiple videos in the same channel. What has working good for me is 4-5 views per proxy in the same video every 50 hours. I rent for 90 days.

@techkick
Copy link

hi guys, im later sorry i think the problem here is not the script but the proxys, after i changed IPV4 proxys for IPV6 i dont face any problem with drop views (same using last chrome version and old script) try to test only with IPV6 proxy @MShawon

can you please share your complete setup chrome version, os version and other essential details? please...

@Znotrovitsk
Copy link
Author

Znotrovitsk commented Sep 13, 2023

@techkick74 I'm using last chrome version 117.0.5938.62 - Win 10 - and random UA extension with firefox user agent. But i tested the script in old version and worked without drop using IPV6.

I really think the problem is only with the proxy IPV4 because in the past the script works 100%.

Today all ISP provide IPV6 for their customers looking for that way youtube can add some code in the backend for look suspicious for IPV4 they can think that is a bad IP potentially a bot or a bad subnet not a real user IPV6 being a real people.

I just assume that but makes a lot of sense for me.

@techkick
Copy link

@techkick74 I'm using last chrome version 117.0.5938.62 and random UA extension with firefox user agent. But i tested the script in old version and worked without drop using IPV6.

I really think the problem is only with the proxy IPV4 because in the past the script works 100%.

Today all ISP provide IPV6 for their customers looking for that way youtube can add some code in the backend for look suspicious for IPV4 they can think that is a bad IP potentially a bot or a bad subnet not a real user IPV6 being a real people.

I just assume that but makes a lot of sense for me.

why i am getting this issue with chrome v116 #589 check this ...

@Znotrovitsk
Copy link
Author

You tried to use old chrome version and stop auto update in regedit?

@Znotrovitsk
Copy link
Author

Znotrovitsk commented Sep 13, 2023

Try to create a new user in your desktop and download chrome <115v, if dont work wait for mshawon

@techkick
Copy link

You tried to use old chrome version and stop auto update in regedit?

yes i block auto-update.

@taran0026
Copy link

@Znotrovitsk I tried ipv6 proxies(from proxy-seller) and used the UA extension and 90% of my views dropped after 48 hours. Chrome version 104.

@Znotrovitsk Znotrovitsk mentioned this issue Sep 14, 2023
4 tasks
@kattstof
Copy link

for the record -- I'm under the impression that Znotrivitsk is talking out of his arse. a chrome extension shouldn't work with this script as the code doesn't load chrome extensions by default you have to specify it with flags -- but the source doesn't do that -- hence why it shouldn't work and from my testing doesn't work.

simply put -- unless you set the flags yourself the script as is doesn't tell selenium to load any extensions -- therefor no extensions should be loaded

@Znotrovitsk
Copy link
Author

@kattstof Look #592 i think the problem is that. What you think?

@kattstof
Copy link

No
as i've said the problem is using chrome (its easier to detect than firefox) and the lack of properly rotating useragents

i've got my own script using firefox geckodriver with a personal curated list of useragents
i've not had a view depleted since testing it a month ago

as i've been saying to fix properly you would ideally switch from chrome to firefox and then properly switch useragent and proxy per webdriver

but for some reason no one listens when i'm saying exactly HOW to fix it.

@Znotrovitsk
Copy link
Author

Can you explain why you think its easier detect than firefox?

@kattstof
Copy link

google owns chrome and youtube it's kind of self explanatory

@Znotrovitsk
Copy link
Author

2 years ago this script worked 100% without drops, If your theory would be right, it would be impossible to create a bot view using Google Chrome, right? lmao

@kattstof
Copy link

google since they own chrome can add flags in place to help youtube differentiate between webdriver and legitimate instances with little to no effort. which is what is sounds like happened since the new chrome update is what bricked this script. firefox could do this too to some extent but they have less of an incentive to do so.

@abhishekdeshkar
Copy link

@kattstof I have 1k AWS EC2 instances. I tried to run this script in each instance with their own IPv4.

It didn't work. Any reasons ?

@techkick
Copy link

No as i've said the problem is using chrome (its easier to detect than firefox) and the lack of properly rotating useragents

i've got my own script using firefox geckodriver with a personal curated list of useragents i've not had a view depleted since testing it a month ago

as i've been saying to fix properly you would ideally switch from chrome to firefox and then properly switch useragent and proxy per webdriver

but for some reason no one listens when i'm saying exactly HOW to fix it.

can you please give me your script?

@AeroMonkie
Copy link

@kattstof I have 1k AWS EC2 instances. I tried to run this script in each instance with their own IPv4.

It didn't work. Any reasons ?

I think YouTube flags IPs from Virtual Machines.

@snackye
Copy link

snackye commented Sep 16, 2023

hello is this bot working currently? does it offer high retention and different internal souces working?

@AeroMonkie
Copy link

The fact that this bot was even on GitHub to begin with is ridiculous. YouTube devs crawl this site all the time. We are just showing them what the exploits are and how they can patch them.

@kattstof
Copy link

This isn't an exploit LMAO it's not even a loophole in a technical sense. The ways people automate things like this have been known for literal ages. there's nothing to patch, as its not an error to be exploited. it's literally just making the browser seem as legitimate as possible for traffic. It's not even a youtube thing (what an idiotic assertion srsly; educate yourself better.)
the techniques used in this script are the same ones you would use to scrape search engines, automate interactions on social media sites, and a host of other things.
what you've just said is one of the most insanely idiotic things I have ever heard. At no point in your rambling, incoherent response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you no points, and may God have mercy on your soul.

Repository owner locked as too heated and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests