#!/bin/env python
# -*- coding: UTF-8 -*-
# Author: 刘小懒
# example: python3 http_status.py https://blog.51cto.com/liuxiaolan/2488619
import requests
import sys

def http_status(arg):
    try:
        html = requests.get(arg)
        code = html.status_code
        print(code)

    except:
        print(1)
        sys.exit(0)

if __name__ == "__main__":
    code = sys.argv[1]
    http_status(code)