Grabs the last 100 submissions of a subreddit, creates a wordcloud from the text and uploads it as a sidebar image on Reddit. Also writes the history to a wiki page along with uploading the image to Imgur and posting a new submission on chosen subreddit. Enjoy!
pip3 install -r requirements.txt
Enter all your juicy details and set variables in config.py
python3 run.py
-
Add blank image link to the sidebar
[](//recycledrobot.co.uk)
-
Add CSS styles to stylesheet (edit to suit your theme)
.side .md [href='//recycledrobot.co.uk'] { display: block; height: 318px; width: 318px; background: url(%%cloud%%); background-size: 318px; margin-left: -15px; }
-
Upload cloud image placeholder
data/cloud.jpg
I've included a modified version of the popular theme Naut that works nicely with the word cloud. Copy the contents of theme/styles.css over to the subreddit stylesheet and upload all the images in the theme folder. Take a look at the marvellous spangly Live demo if you like.
This 'ere software is hacky as fuck. Use at your peril. I'd appreciate a mention if you do. But if you don't, I'm not going to lose sleep over it.
'Meh' - impshum on copyright