Created
July 27, 2018 07:52
-
-
Save bmackenty/7a25e9906a2e451e7b190193174fdfc7 to your computer and use it in GitHub Desktop.
Simple starting python example to read media wiki API for our class wiki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
url = "https://computersciencewiki.org/api.php?action=query&titles=Welcome&prop=revisions&rvprop=content&format=json" | |
result = requests.get(url) | |
print(result) | |
print(result.text) | |
print(result.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment