Skip to content

Instantly share code, notes, and snippets.

@LoliC0d3
Created July 19, 2021 11:27
Show Gist options
  • Save LoliC0d3/0620d5350650375155021091c8d75d79 to your computer and use it in GitHub Desktop.
Save LoliC0d3/0620d5350650375155021091c8d75d79 to your computer and use it in GitHub Desktop.
Python Get CMS Using Tag Meta Contents
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