|
import subprocess
|
|
import sys
|
|
import time
|
|
import json
|
|
from appium.webdriver.common.touch_action import TouchAction
|
|
|
|
from selenium.webdriver.common.by import By
|
|
from appium.webdriver.common.mobileby import MobileBy
|
|
from appium import webdriver
|
|
|
|
from agent_for_api.API_list import usr_api_list
|
|
from agent_for_api.agent_api_prompt import select_api_prompt, select_api_example
|
|
from agent_for_api.main_for_api import get_api_list
|
|
from data_prompt import *
|
|
from app_list import *
|
|
from agent_for_api.API_list import *
|
|
from selenium.common.exceptions import WebDriverException, InvalidElementStateException, NoSuchElementException
|
|
|
|
from app_list import app_list
|
|
from chatgpt import chatgpt
|
|
import re
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
with open('s_app_s_step.json', 'r', encoding='UTF-8') as file:
|
|
data = json.load(file)
|
|
|
|
domain_count = {}
|
|
for item in data:
|
|
domain = item['domain']
|
|
if domain in domain_count:
|
|
domain_count[domain] += 1
|
|
else:
|
|
domain_count[domain] = 1
|
|
|
|
print(len(domain_count))
|
|
for domain, count in domain_count.items():
|
|
print(f"{domain}: {count}") |