#!/usr/bin/env python
# -*- coding:utf8 -*-

import requests
import sys
import gevent
from gevent.threadpool import ThreadPool

def Code_status(url):
    r = requests.get(url,timeout=5)
    if r.status_code == requests.codes.ok:
        return url

if __name__ == '__main__':
    pool = ThreadPool
    result = []
    for i in open('urlfile.txt'):
        result.append(pool.spawn(Code_status,i.strip()))
    for i in result:
        with open('saveurl.txt','a+') as f:
            f.write('%s OK!\n'%i.get())

0c81c7c05d37f05a4d8c34b4bb02955b8bdbc8bd
<mask token>

<mask token>


def Code_status(url):
    r = requests.get(url, timeout=5)
    if r.status_code == requests.codes.ok:
        return url


<mask token>

<mask token>


def Code_status(url):
    r = requests.get(url, timeout=5)
    if r.status_code == requests.codes.ok:
        return url


if __name__ == '__main__':
    pool = ThreadPool
    result = []
    for i in open('urlfile.txt'):
        result.append(pool.spawn(Code_status, i.strip()))
    for i in result:
        with open('saveurl.txt', 'a+') as f:
            f.write('%s OK!\n' % i.get())

import requests
import sys
import gevent
from gevent.threadpool import ThreadPool


def Code_status(url):
    r = requests.get(url, timeout=5)
    if r.status_code == requests.codes.ok:
        return url


if __name__ == '__main__':
    pool = ThreadPool
    result = []
    for i in open('urlfile.txt'):
        result.append(pool.spawn(Code_status, i.strip()))
    for i in result:
        with open('saveurl.txt', 'a+') as f:
            f.write('%s OK!\n' % i.get())

#!/usr/bin/env python
# -*- coding:utf8 -*-

import requests
import sys
import gevent
from gevent.threadpool import ThreadPool

def Code_status(url):
    r = requests.get(url,timeout=5)
    if r.status_code == requests.codes.ok:
        return url

if __name__ == '__main__':
    pool = ThreadPool
    result = []
    for i in open('urlfile.txt'):
        result.append(pool.spawn(Code_status,i.strip()))
    for i in result:
        with open('saveurl.txt','a+') as f:
            f.write('%s OK!\n'%i.get())
