feat:重构request请求模块
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import requests
|
||||
from message.request_message import send_request
|
||||
|
||||
stock_url = 'http://push2.eastmoney.com/api/qt/stock/get'
|
||||
estun_id = '0.002747'
|
||||
|
||||
|
||||
def get_today_stock(company_id=estun_id):
|
||||
response = requests.get(
|
||||
stock_url,
|
||||
response = send_request(
|
||||
url=stock_url,
|
||||
method='GET',
|
||||
params={'secid': company_id}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user