This file contains hidden or 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 | |
''' | |
Code by Alba Mendez, manually copied and pasted, had 8 revisions when copied. | |
https://gist.github.com/mildsunrise/ffd74730504e4dc44f47fc7528e7bf59 | |
Portable* ISO Base Media File Format dissector / parser. | |
Usage: ./mp4parser.py <file name> | |
(*) Needs Python 3.8+ |
This file contains hidden or 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 python | |
""" | |
urlnorm.py - URL normalisation routines | |
Ported to python3. | |
urlnorm normalises a URL by; | |
* lowercasing the scheme and hostname | |
* taking out default port if present (e.g., http://www.foo.com:80/) |