my code
{
"Name": "test1",
"CreationDate": "2022-6-17",
"Commands": [
{
"Command": "if_v2",
"Target": "${!LOOP}==1",
"Value": "templist = [][]",
"Description": ""
},
{
"Command": "open",
"Target": "https://kr.usembassy.gov/category/news/",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=/html/body/div[5]/section[2]/div[2]/div/main[${!LOOP}]/article/div/div/h2[2]/a",
"Value": "",
"Targets": [
"xpath=/html/body/div[5]/section[2]/div[2]/div/main/article/div/div/h2[2]/a/font/font",
"xpath=//h2[2]/a/font/font",
"css=body > div.main-content-wrapper > section.stacking-slide.container-fluid.archivesection > div.archive-tax.alignwide.archivetemp.container > div > main:nth-child(1) > article > div > div > h2.entry-title > a > font > font"
],
"Description": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": "",
"Description": ""
},
{
"Command": "storeText",
"Target": "xpath=/html/body/div[5]/section[2]/div[1]/div[4]",
"Value": "CON_DATE",
"Description": ""
},
{
"Command": "storeText",
"Target": "xpath=/html/body/div[5]/section[2]/div[2]/div",
"Value": "CONTENT",
"Description": ""
},
{
"Command": "comment",
"Target": "echo // ${CON_DATE}",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "echo // ${CONTENT}",
"Value": "",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "",
"Target": "",
"Value": "",
"Description": ""
}
]
}
I want to make it in the form below.
templist = [${con_date}][${content}]
python code like
n=0
while (n = 1000)
a = list()
a.append([con_date][title])
n+=1
print(a) ==> [2022.06.17][lalalalbabbalblala], ....................
After making it in the above format, I want to make output with the json file.
It is so hard because there is no API translation in my native language.
Give me a hand. Thank you.