Inventory_data = {"Inventario_datos": {"Alti MW $ 2 |": {"Floor_price": '2.5', "Li_platform": 1,
"Excel_name": "Alti MW $ 2.xlsx", "Li_Publisher": 2,
"Tag_Rate": "2", "TagName": "Alti MW $ 2 |"}},
"Alti MW $ 3 |": {"Floor_price": '2.75', "Li_platform": 1,
"Excel_name": "Alti MW $ 2.25.xlsx", "Li_Publisher": 2,
"Tag_Rate": "2.25", "TagName": "Alti MW $ 2.25 |"}}
With that dictionary I am wanting to work. I seek to copy these values within my variables:
Escriba el campo = "Alti MW $ 2 |"
#Packs para completar
TagName = "{}"
Floor_price = '{}'
Li_platform = '// * [@ id = "platform_listbox"] / li [{}]'
Excel_name = '{}'
Li_Publisher = '// * [@ id = "publisher_listbox"] / li [{}]'
Tag_Rate = '{}'
In write field the idea is that one places in this case "Alti MW $ 2 |"
or "Alti MW $ 3 |"
and that in my variables, within each {} the dictionary data is copied.
To be clear, I need a function where you specify "Alti MW $ 3 |" and I returned all the values in the variables below. It would have to look something like this:
Escriba el campo = "Alti MW $ 2 |"
#Packs para completar
TagName = "Alti MW $ 2 |"
Floor_price = '2.8'
Li_platform = '// * [@ id = "platform_listbox"] / li [1]'
Excel_name = 'Alti MW $ 2.25.xlsx'
Li_Publisher = '// * [@ id = "publisher_listbox"] / li [2]'