This file contains 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
#!/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> |