Answer the question
In order to leave comments, you need to log in
Parsing the first youtube video when searching for PYTHON. How to do?
In general, you need to parse the first video when searching. The code looks something like this:
import requests
text = input("Введите текст для поиска: ")
url = "https://m.youtube.com/results?search_query="+text
r = requests.get(url)
data = r.text
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question