摘要:
1 import json 2 3 import requests 4 import urllib3 5 from pymongo import MongoClient 6 7 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 8 9 client = MongoClient('loca... 阅读全文
摘要:
1 import pymysql 2 3 4 def main(): 5 conn = pymysql.connect(host="localhost", port=3306, user="", password="", 6 database="all_ip", charset="utf8") 7 8 c... 阅读全文
摘要:
1 #!usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 from redis import * 5 6 if __name__ == '__main__': 7 # 创建一个StrictRedis对象,链接redis数据库 8 # sr = StrictRedis(host='localhost', port=... 阅读全文