Jul-11-2020, 08:47 AM
Hello all,
few months ago I dabbled in Beautiful Soup for first time, so I still lack much understanding of the module and entire subject.
However, the issue I'm having is that B.S. parsed the whole page HTML just fine. And this time, when re-running the same code, I only get partial HTML response, most of the response being lines of JavaScript.
The code is:
Thanks and best regards,
JC
few months ago I dabbled in Beautiful Soup for first time, so I still lack much understanding of the module and entire subject.
However, the issue I'm having is that B.S. parsed the whole page HTML just fine. And this time, when re-running the same code, I only get partial HTML response, most of the response being lines of JavaScript.
The code is:
import requests from bs4 import BeautifulSoup url = "https://www.youtube.com/results?search_query=python" response = requests.get(url) soup = BeautifulSoup(response.content, "html.parser") # print(soup)Any tip will be much appreciated.
Thanks and best regards,
JC