摘要: #!/usr/bin/env python # coding=utf-8 import requests from bs4 import BeautifulSoup import pymysql import re # 连接数据库 connect = pymysql.Connect( host='1 阅读全文
posted @ 2021-07-19 17:50 御世制人 阅读(330) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import pymysql.cursors connect = pymysql.Connect( host='**********', port=3306, user='root', passwd='123456', db='ry', charset 阅读全文
posted @ 2021-07-19 09:50 御世制人 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # coding=utf-8 import requests from bs4 import BeautifulSoup import MySQLdb print('连接到mysql服务器...') db = MySQLdb.connect("127.0. 阅读全文
posted @ 2021-07-19 08:40 御世制人 阅读(175) 评论(0) 推荐(0) 编辑