Using pywikibot, how to get elements with nested elements inside?

Using this example , how do I get the interaction values ​​on the email page?

I'm stuck on this

item_dict = item.get()
clm_dict = item_dict["claims"]
clm_list = clm_dict["P2069"]

for clm in clm_list:
   clm_trgt = clm.getTarget()

All I get is another itempage object. (python 3.6)

+4
source share

Source: https://habr.com/ru/post/1672461/


All Articles