Skip to content

Commit

Permalink
Only retrieve free images as discussed in #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
flackbash committed Mar 5, 2020
1 parent 3c7b959 commit 6f21ddd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions get_wiki_image_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def retrieve_wiki_image_url(batch, img_size=500):
titles_str = "|".join(batch.keys())
host = "https://en.wikipedia.org/w/api.php"
data = {"action": "query", "prop": "pageimages", "titles": titles_str,
"pithumbsize": img_size, "format": "json", "formatversion": 2,
"pilicense": "any"}
"pithumbsize": img_size, "format": "json", "formatversion": 2}

# Try to send request to API
counter = 0
Expand Down

0 comments on commit 6f21ddd

Please sign in to comment.