mirror of
https://github.com/jwinterm/py-ticker.git
synced 2026-10-17 05:41:39 +02:00
17 lines
451 B
Python
17 lines
451 B
Python
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()
|
|
sub.stylesheet.upload("ticker", "img/temp/ticker.png")
|
|
sub.stylesheet.update(stylesheettext)
|