projects
/
wikipedia-api-cdsw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated wikipedia project to fix windows encoding issue
[wikipedia-api-cdsw]
/
wikipedia1-2.py
diff --git
a/wikipedia1-2.py
b/wikipedia1-2.py
index 98fd1297c7801663587972c5cc44b2d0f0f9859b..a33b819d83efcc8c353aa98e8e4c7546a7261806 100644
(file)
--- a/
wikipedia1-2.py
+++ b/
wikipedia1-2.py
@@
-1,3
+1,4
@@
+import encoding_fix
import requests
# raw string:
import requests
# raw string:
@@
-12,7
+13,6
@@
parameters = {'action' : 'query',
'format' : 'json',
'continue' : ''}
'format' : 'json',
'continue' : ''}
-# run a white true loop
while True:
wp_call = requests.get('https://en.wikipedia.org/w/api.php', params=parameters)
response = wp_call.json()
while True:
wp_call = requests.get('https://en.wikipedia.org/w/api.php', params=parameters)
response = wp_call.json()
Benjamin Mako Hill
||
Want to submit a patch?