X-Git-Url: https://projects.mako.cc/source/harrypotter-wikipedia-cdsw/blobdiff_plain/2da9c10d579b36f785f90fd2aebc57b3b0c3e876..2e473702cd932f0a9f9c05545134c372089ef30b:/build_hpwp_dataset.py diff --git a/build_hpwp_dataset.py b/build_hpwp_dataset.py index 62f7e4f..9d381ae 100644 --- a/build_hpwp_dataset.py +++ b/build_hpwp_dataset.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # coding=utf-8 +import encoding_fix import requests # get_article_revisions is a function that takes an article title in @@ -107,6 +108,7 @@ for article in articles: # first grab the article's title title = article["a"]["title"] + print(title) # get the list of revisions from our function and then iterate through it, # printing it to our output file