User talk:Poornima7/Outreachy 2

From Wikidata
Jump to navigation Jump to search

@Poornima7: Sorry for the delay with reviewing this. The code looks good! You may want to split some things up into functions, though, particularly for future tasks. But you can mark task 2 as completed, well done! Thanks. Mike Peel (talk) 17:26, 8 April 2021 (UTC)[reply]

BTW, the issue with adding statements is explained in 'AttributeError: 'str' object has no attribute 'addClaim. Have a look at [1] - see that it uses .get() rather than .text so that you get the page rather than just the text. You will also find browsing Wikidata infromation easier with the item_dict that .get() returns. Thanks. Mike Peel (talk) 17:30, 8 April 2021 (UTC)[reply]
No issue! And yes, I'll look into that. Thank you for the feedback. Hoping to perform better in the future. --Poornima7 (talk) 19:35, 9 April 2021 (UTC)[reply]