import requests as r
from bs4 import BeautifulSoupurl = “”
response = r.request(“GET”, url)
soup = BeautifulSoup(response.content, “html.parser”)
page = r.get(url)
soup = BeautifulSoup(page.content, ‘html.parser’)
print(soup)
Pretty new to Beautiful Soup so my apologies if this post is vague.
I am trying to scrape data from a ServiceNow ticket.
When I run this code, I only get the Javascript code for the website. When I view source for the ticket, I can see the HTML.
What can I do to show the HTML content of the ServiceNow ticket?
I tried the code in the description.
user18092210 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.