mirror of
https://github.com/jwinterm/py-ticker.git
synced 2026-10-28 06:28:35 +01:00
Change to pull current CSS stylesheet and then reupload it
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import imggen
|
||||
import praw
|
||||
from userpw import *
|
||||
|
||||
tickerimg = imggen.imggen()
|
||||
|
||||
reddit = praw.Reddit(client_id=client_id, client_secret=client_secret,
|
||||
username=username, password=password,
|
||||
user_agent=user_agent)
|
||||
|
||||
print(reddit.user.me())
|
||||
sub = reddit.subreddit('cryptocurrency')
|
||||
# print(sub.title)
|
||||
ss = sub.stylesheet()
|
||||
print(ss.stylesheet)
|
||||
# sub.stylesheet.upload("ticker", "img/temp/ticker.png")
|
||||
# sub.stylesheet.update(stylesheettext)
|
||||
Reference in New Issue
Block a user