Created
July 19, 2021 11:27
-
-
Save LoliC0d3/0620d5350650375155021091c8d75d79 to your computer and use it in GitHub Desktop.
Python Get CMS Using Tag Meta Contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
response = requests.get('http://tegalsec.org') | |
soup = BeautifulSoup(response.text, 'html.parser') | |
metatags = soup.find_all('meta',attrs={'name':'generator'}) | |
for tag in metatags: | |
print(tag["content"]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment