Skip to content

Instantly share code, notes, and snippets.

@bmackenty
Created July 27, 2018 07:52
Show Gist options
  • Save bmackenty/7a25e9906a2e451e7b190193174fdfc7 to your computer and use it in GitHub Desktop.
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
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