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

群益台灣精選高息ETF基金(00919)」指數編製原則調整說明

本公司經理之「群益台灣精選高息(證券代號:00919)」(以下稱本基金)所追蹤之標的指數「臺灣指數公司特選臺灣上市上櫃精選高息指數」部分指數編製規則異動,業經金融監督管理委員會以中華民國(以下同)114年4月23日金管證投字第1140339355號函備查在案,標的指數成分股檔數由...