Jul-11-2020, 09:37 AM
(This post was last modified: Jul-11-2020, 09:37 AM by HarleyQuin.)
Hey bro,
So i would recommend using the code that i used below:-
It returns full request. Its hard for me to know what it is missing compared to an original you ran months ago tho...
The below query works nicely as far as i am aware.
So i would recommend using the code that i used below:-
It returns full request. Its hard for me to know what it is missing compared to an original you ran months ago tho...
The below query works nicely as far as i am aware.
import requests from bs4 import BeautifulSoup url = requests.get("https://www.youtube.com/results?search_query=python").content soup = BeautifulSoup(url, 'lxml') # You can use html.parser here alternatively - Depends on what you are wanting to achieve print(soup)