title: Making a tree of Wikipedia links
body: <p>I am trying to use the Wikipedia API to get all links on all pages. Currently I'm using</p>
  
  <p><a href="https://en.wikipedia.org/w/api.php?format=json&amp;action=query&amp;generator=alllinks&amp;prop=links&amp;pllimit=max&amp;plnamespace=0" rel="nofollow noreferrer">https://en.wikipedia.org/w/api.php?format=json&amp;action=query&amp;generator=alllinks&amp;prop=links&amp;pllimit=max&amp;plnamespace=0</a></p>
  
  <p>but this does not seem to start at the first article and end at the last. How can I get this to generate all pages and all their links?</p>