1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
# Wikipedia articles.
from nodebox_web import web
from nodebox_web.web import wikipedia
q = "Finland"
article = wikipedia.search(q, language="nl")
# Print the article title.
print article.title
# Get a list of all the links to other articles.
# We can supply these to a new search.
print article.links
# The title of each paragraph
for p in article.paragraphs:
print p.title
#print "-"*40
#print p
print article.paragraphs[0]
print
print article.references[0]
|