import requests
from bs4 import BeautifulSoup
import re
def getHTMLText(url):
try:
r = requests.get(url)
r.raise_for_status()
r.encoding = r.apparent_encoding
return r.text
except:
return ""
def getStockList(lst, stockURL,city_lst):
html = getHTMLText(stockURL)
soup = BeautifulSoup(html, 'h
python 爬虫 爬取大众点评11月之星
最新推荐文章于 2024-11-15 16:40:07 发布