Relative Content

Tag Archive for pythonhtmlbeautifulsouppython-requests

Printing a webpages raw html data unformatted with tags and similar information

import requests from bs4 import BeautifulSoup url = ‘https://www.somewebpage.com’ response = requests.get(url) soup = BeautifulSoup(response.text, ‘html.parser’) print(soup.prettify()) When I run this, my terminal in codewars appears like the literal webpage associated with the url, hyperlinks and all. When I print the data I want to be able to see all of it without it being […]

Printing a webpages raw html data unformatted with tags and similar information

import requests from bs4 import BeautifulSoup url = ‘https://www.somewebpage.com’ response = requests.get(url) soup = BeautifulSoup(response.text, ‘html.parser’) print(soup.prettify()) When I run this, my terminal in codewars appears like the literal webpage associated with the url, hyperlinks and all. When I print the data I want to be able to see all of it without it being […]