Checking the likes on YouTube

How do I check if a video is worth liking using Selenium and Python?I was able to put a like, but before that you need to check whether it is worth it at all,and how to do it - I do not know.

Author: Stepashka20, 2019-12-24

1 answers

Look at the class item in the like element code. After the like, the class attribute changes to default-active. How to check a class attribute is described here (Java): https://stackoverflow.com/questions/32713009/how-to-check-if-element-contains-specific-class-attribute

 0
Author: Areke, 2019-12-25 06:41:40