Skip to content

Instantly share code, notes, and snippets.

View ZhangZhongwei73671's full-sized avatar

ZhangZhongwei73671

View GitHub Profile
#BeautifulSoup爬虫实践:房屋价格数据
import requests
import pandas as pd
import csv
from bs4 import BeautifulSoup
import MySQLdb
conn = MySQLdb.connect(host ='localhost',user = 'root',passwd = 'yourpasswd',db = 'ershoufang',charset = "utf8")
cur = conn.cursor()