I know there is this code: generator=random
to get a random page but it doesn't work with my code below :
http://en.wikipedia.org/w/api.php?action=parse&format=json&prop=text&page=Little_Richard&callback=?
This URL comes from this great article.
I have used action=parse
, prop=text
and page=Page_Name
because it's the only way (that I found) to get the links with the text.
You can this the result of my whole code there (this code doesn't work on JSFiddle or CodePen).
Anybody know if there is a way to get a random page with this method ? Thanks in advance :)
Aucun commentaire:
Enregistrer un commentaire