MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / check_github_api

Function check_github_api

Scripts/Network Tools/Digital Footprint Finder.py:728–737  ·  view source on GitHub ↗
(session: requests.Session, username: str, timeout: Tuple[float, float])

Source from the content-addressed store, hash-verified

726 text = body[:1_500_000].decode("utf-8", errors="replace")
727 soup = None
728 with contextlib.suppress(Exception):
729 from bs4 import BeautifulSoup # type: ignore
730 soup = BeautifulSoup(text, "html.parser")
731
732 def meta_value(*names: str) -> Optional[str]:
733 if soup is not None:
734 for name in names:
735 tag = soup.find("meta", attrs={"name": name}) or soup.find("meta", attrs={"property": name})
736 if tag and tag.get("content"):
737 return str(tag.get("content")).strip()
738 for name in names:
739 patterns = [
740 rf"<meta[^>]+(?:name|property)=[\"']{re.escape(name)}[\"'][^>]+content=[\"']([^\"&#x27;]*)",

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected