Created
November 18, 2017 16:18
-
-
Save m7x/7630f0e7a58b65b98131b041511d8161 to your computer and use it in GitHub Desktop.
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/python2.7 | |
import argparse | |
from user_agents import parse | |
if __name__ == "__main__" : | |
parser = argparse.ArgumentParser() | |
parser.add_argument("UserAgent",help="Specify User Agent") | |
args = parser.parse_args() | |
user_agent = parse(args.UserAgent) | |
print(str(user_agent)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment