# -*- coding: utf-8 -*- from utils import * import uvicorn from fastapi import FastAPI app = FastAPI() # 通过fid来获取网盘信息->[] 链接+提取码 /None @app.get("/getPanInfo") def getPanInfo(fid:str): session.headers = headers jsonResp = try_puchase(fid=fid, session=session) print(jsonResp) panResult = get_pan_info(fid=fid, session=session) # 每次先尝试购买然后重新打开detail页面查询返回 print(panResult) return panResult if __name__ == '__main__': uvicorn.run(app, host='0.0.0.0', port=7860)