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

Does not work #7

Open
onix010 opened this issue Jan 17, 2021 · 1 comment
Open

Does not work #7

onix010 opened this issue Jan 17, 2021 · 1 comment

Comments

@onix010
Copy link

onix010 commented Jan 17, 2021

It does not click on the video and play. It just closes itself on search.

@reithoufr
Copy link

You can fix this by replacing

section_list = driver.find_element_by_class_name('section-list')
link = section_list.find_element_by_class_name('yt-uix-tile-link')

in the try statement of the search_and_click function by

link = driver.find_element_by_id('video-title').

YouTube changed their class names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants