| | |
| | | self.__kplDataManager.save_data(type_, result_list_) |
| | | |
| | | # 将"概念"二字替换掉 |
| | | data = json.loads(kpl_util.filter_block(json.dumps(data_origin))) |
| | | data = data_origin |
| | | type_ = data["type"] |
| | | print("开盘啦type:", type_) |
| | | if type_ == KPLDataType.BIDDING.value: |
| | |
| | | for r in results: |
| | | if not r[18] and pid_info[1]: |
| | | r[18] = pid_info[1] |
| | | # 替换掉板块名称 |
| | | for i in range(len(r)): |
| | | if type(r[i]) == str: |
| | | r[i] = kpl_util.filter_block(r[i]) |
| | | fresults.extend(results) |
| | | |
| | | return json.dumps({"errcode": 0, "list": fresults}) |
| | |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | data = f"Order=0&a=DailyLimitPerformance&st=20&apiv=w35&Type=4&c=HomeDingPan&PhoneOSNew=1&DeviceID=a38adabd-99ef-3116-8bb9-6d893c846e23&VerSion=5.13.0.0&Index=0&PidType={5}&" |
| | | result = __base_request("https://apphq.longhuvip.com/w1/api/index.php", data=data) |
| | | print(result) |
| | | print(getLimitUpInfoNew()) |
| | | |
| | |
| | | if tool.is_trade_time() or True: |
| | | try: |
| | | results = kpl_api.getLimitUpInfoNew() |
| | | results = kpl_util.filter_block(results) |
| | | result = json.loads(results) |
| | | start_time = time.time() |
| | | __upload_data("limit_up", result) |