Compare commits
2 Commits
417f81d6a5
...
0bfcfeb701
Author | SHA1 | Date | |
---|---|---|---|
0bfcfeb701 | |||
![]() |
1f13c2e878 |
16
update_viewings_csv.py
Normal file
16
update_viewings_csv.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import json
|
||||||
|
|
||||||
|
from wiki_pages import ViewingsCsv
|
||||||
|
|
||||||
|
|
||||||
|
def update_viewings_csv(token_id, token_secret):
|
||||||
|
print("Updating CSV")
|
||||||
|
ViewingsCsv.update_viewings_csv(token_id, token_secret)
|
||||||
|
print("Done!")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
with open('token.json') as json_file:
|
||||||
|
token = json.load(json_file)
|
||||||
|
|
||||||
|
update_viewings_csv(token['token_id'], token['token_secret'])
|
Loading…
x
Reference in New Issue
Block a user