unfurl
unfurl copied to clipboard
Parse GitHub URLs
Description GitHub URLs have a lot of info in them describing what is being viewed.
Examples
-
https://github.com/obsidianforensics/unfurl/blob/master/unfurl/parsers/parse_twitter.py#L15
- From above, we can tell:
- GitHub username (obsidianforensics)
- Repo name (unfurl)
- Viewing file content (blob)
- on branch master
- path in code (unfurl/parsers/parse_twitter.py)
- Goes to line 15 in the file (#L15)
-
https://github.com/obsidianforensics/unfurl/tree/master/unfurl/parsers
- Mostly same as above, but viewing the "tree" view of file names, not file content
References
- The above examples is just from me looking at the URLs; some actual references for this would be great!