YouTubeUploader icon indicating copy to clipboard operation
YouTubeUploader copied to clipboard

Verify It's You

Open sinzed opened this issue 3 years ago • 9 comments

Hi, Thank you for your effort. it works good when using Browsers but on Docker it stops with the error

Traceback (most recent call last): File "./main.py", line 139, in <module> main() File "./main.py", line 48, in main upload_file( File "/root/project-name/YouTubeUploader/src/upload.py", line 36, in upload_file _set_advanced_settings(driver, game, kids) File "/root/project-name/YouTubeUploader/src/upload.py", line 150, in _set_advanced_settings WebDriverWait(driver, 20).until(EC.element_to_be_clickable( File "/root/.cache/pypoetry/virtualenvs/youtubeuploader-qf-YjOKG-py3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click self._execute(Command.CLICK_ELEMENT) File "/root/.cache/pypoetry/virtualenvs/youtubeuploader-qf-YjOKG-py3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute return self._parent.execute(command, params) File "/root/.cache/pypoetry/virtualenvs/youtubeuploader-qf-YjOKG-py3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/root/.cache/pypoetry/virtualenvs/youtubeuploader-qf-YjOKG-py3.8/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementClickInterceptedException: Message: Element <div id="radioContainer" class="style-scope tp-yt-paper-radio-button"> is not clickable at point (539,793) because another element <tp-yt-iron-overlay-backdrop class="opened"> obscures it

image

docker -v Docker version 20.10.2, build 20.10.2-0ubuntu1~20.04.2

docker-compose -v docker-compose version 1.25.0, build unknown

poetry -v Poetry version 1.1.6

python3 --version Python 3.8.5

sinzed avatar Jun 11 '21 16:06 sinzed

is there anyway to open the browser (remote web-driver) of docker-compose manually and do the verification?

sinzed avatar Jun 11 '21 16:06 sinzed

Hey. Thanks for reporting. I encountered this as well (two days ago) and hoped it was just related to my account, but seems Google added another security layer there.

I have no idea right now how to fix this because the verification is not possible through an automated browser instance and it even happened to me with completely fresh cookies.

is there anyway to open the browser (remote web-driver) of docker-compose manually and do the verification?

@MorMund any ideas about whether something like this would be possible/could work?

ChristianCoenen avatar Jun 11 '21 16:06 ChristianCoenen

any ideas about whether something like this would be possible/could work?

You can access the browser UI inside the container, however since its a selenium session, the login would still be blocked by Google. And as far as I know Selenium creates a new profile on startup, so you can't verify without selenium ahead of time.

We could see if its possible with Selenium to use a complete Firefox profile, which could be verified outside of the container. But Google might still just check for automated browsers and show the verification anyway.

MorMundHS-MA avatar Jun 11 '21 20:06 MorMundHS-MA

I recently encounted the same issue, selenium on js, not python. Switching the agent to firefox did nothing, I tried to save/load the browser session to disk instead of loading the cookie everythime, same thing. The only thing that worked was deleting the whole html element, you can try with the developer tools open, just select and delete, it will let you keep using the site. But it seems very hacky, I gave up working with it in fear of banning, I applied for higher credits on the official API....

rzfzr avatar Jun 20 '21 22:06 rzfzr

I'm also getting stuck here. I wish there is a workaround for this. Adding video descriptions manually is a pain :(

fais3000 avatar Aug 24 '21 16:08 fais3000

我最近遇到了同样的问题,js 上的 selenium,而不是 python。将代理切换到 firefox 什么也没做,我尝试将浏览器会话保存/加载到磁盘,而不是每次都加载 cookie,同样的事情。 唯一有效的是删除整个 html 元素,您可以尝试打开开发人员工具,只需选择并删除,它就会让您继续使用该站点。 但它似乎很hacky,我因为害怕被禁止而放弃了使用它,我在官方API上申请了更高的信用......

申请更高数量的API是否需要支付钱,这个目前是怎么回事呢。 @rzfzr

lengrongfu avatar Nov 02 '21 12:11 lengrongfu

any fix yet? i cant get this working

ethnyl avatar Jun 14 '22 00:06 ethnyl

Unfortunately no. Haven't looked into it since, but I don't see a quick and easy solution to this.

ChristianCoenen avatar Jun 14 '22 11:06 ChristianCoenen

I don't recommend pursuing this, I'm afraid of getting banned. Currently I use both the official api and an chrome extension I developed for manipulating the site with js

rzfzr avatar Jun 14 '22 15:06 rzfzr