Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

retrieve content inside the meta tag python

title = soup.find("meta",  property="og:title")
url = soup.find("meta",  property="og:url")

print(title["content"] if title else "No meta title given")
print(url["content"] if url else "No meta url given")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #retrieve #content #meta #tag #python
ADD COMMENT
Topic
Name
2+6 =