mshd / wikitree

Tree structure of Wikidata entities (previous version here
https://mshd.github.io/wikitree/public/
GNU General Public License v3.0
8 stars 5 forks source link

Add Wikitree api image #9

Closed mshd closed 4 years ago

mshd commented 4 years ago

https://api.wikitree.com/api.php?action=getProfile&key=Von_Amsberg-2 if Wikitree property is set and images is empty try to fetch a image from Wikitree using a nodeJS equivilant to json_decode(file_get_contents("https://api.wikitree.com/api.php?".http_build_query($_GET)));

edwinindrajayas commented 4 years ago

Check the new created node if there is no images and fetch from Wikitree API

mshd commented 4 years ago

Before you code please check my previous commit, I already implemented a function in an extra file. Please change that function, and add the changes to processNode