User talk:ANU Outreachy/Outreachy 3

From Wikidata
Jump to navigation Jump to search

@ANU Outreachy: The code looks like a good start, but the aim is to extract the information directly from the Wikipedia article. So you would retrieve the content of https://en.wikipedia.org/wiki/DragonFly_BSD - and then find in the text 'Category:2004 software' - and from that extract '2004' for the P571 value. Then you could run the same code on 'Chromium (web browser)' to find '2008'. Hope that makes sense? Thanks. Mike Peel (talk) 16:00, 10 April 2021 (UTC)[reply]

@Mike Peel: I am planning on following Wikidata:Pywikibot_-_Python_3_Tutorial/Data_Harvest to extract the claim information. Am I on the right track here? Thanks.
@ANU Outreachy: That tutorial also just extracts info from Wikidata, you need to extract the info from the Wikipedia article. Perhaps have a look at [1] - for example the 'calculateBirthDate' function. Thanks. Mike Peel (talk) 14:10, 14 April 2021 (UTC)[reply]
@Mike Peel: So I should refer to the tutorial for the bonus task ,i.e, "Bonus: print out the corresponding values from Wikidata as well, if they are available.". Is my understanding correct?Thanks. --ANU Outreachy (talk) 14:49, 14 April 2021 (UTC)ANU Outreachy[reply]
@ANU Outreachy: If you want, but the important thing is to do the main task! Thanks. Mike Peel (talk) 14:04, 15 April 2021 (UTC)[reply]
@Mike Peel: Hello sir!

This is my attempt at Task 3. Please share your feedback on this. Thanks! --ANU Outreachy (talk) 13:45, 16 April 2021 (UTC)ANU Outreachy[reply]

@ANU Outreachy: This looks good now. One issue - for the first article, P178 and P112 both return as 'ref name' rather than finding the correct value, you may want to investigate why that is happening. But you can count it as accepted/completed for Outreachy now. Thanks. Mike Peel (talk) 12:45, 20 April 2021 (UTC)[reply]