Skip to content

Instantly share code, notes, and snippets.

@frainfreeze
Last active August 12, 2020 21:35
Show Gist options
  • Save frainfreeze/6ac7194a3cf940f4341c0fd9d2086f21 to your computer and use it in GitHub Desktop.
Save frainfreeze/6ac7194a3cf940f4341c0fd9d2086f21 to your computer and use it in GitHub Desktop.

If you have python and curl you can extract tag and its contents out of html file curl -s http://www.google.com/ | python3 -c 'import sys; s=sys.stdin.read(); e="<body>"; print(s[s.find(e)+len(e):s.find("</body>")])'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment