Skip to content

Instantly share code, notes, and snippets.

View lrnselfreliance's full-sized avatar

lrnselfreliance

View GitHub Profile
#!/usr/bin/env python3
"""
Searches through stdin/file for HTML elements matching the class/attribute filters.
# echo "<html>
<body>
<p>Some links</p>
<a href="https://example.com/1" class="video">Click me</a>
<a href="https://example.com/2" class="video">Click me</a>
<a href="https://example.com/2" class="video">Click me</a>