Saturday, 2 May 2020

Python Get Meta Data Content

Get meta tag content property with BeautifulSoup and Python

from bs4 import BeautifulSoup
title = soup.find("meta",  property="og:title")

Reference Site:
https://stackoverflow.com/questions/36768068/get-meta-tag-content-property-with-beautifulsoup-and-python
https://stackoverflow.com/questions/38009787/how-to-extract-meta-description-from-urls-using-python


How to use python pyquery to get metadata content
Not sure
keyword = query("meta[name='keywords']").text()

Reference Site:
https://stackoverflow.com/questions/20382578/how-can-i-get-content-value-from-meta-tag-using-pyquery

No comments:

Post a Comment

IIS HTTP Error 403.18

 HTTP Error 403.18 - Forbidden The specified request cannot be processed in the application pool that is configured for this resource on the...