rhiever / reddit-twitter-bot

Looks up posts from reddit and automatically posts them on Twitter.
GNU General Public License v3.0
137 stars 38 forks source link

Fully functional #10

Open ocllin opened 8 years ago

ocllin commented 8 years ago

Is it possible to have the script consistently post and retrieve images from the subreddit as the day goes on? I'm running python3.2 and it only posts one image before stopping the script. I have it set to download the top 25 posts (from awwni.me and imgur.com on the subreddit).

rhiever commented 8 years ago

Have you checked if the bot has already posted (or tried to post) those top posts and has the post IDs in the cache?

ocllin commented 8 years ago

It posts one image, and it logs itself, but the script stops after the first image posting. It downloaded 25 images (per my user settings) and only posted the first image.

rhiever commented 8 years ago

Did it actually download the images? Have you checked if the subreddit you're querying actually has 25 "hot" posts? Perhaps try writing a separate script querying the subreddit for the top 25 "hot" posts and see if 25 come up. IIRC posts are only "hot" for the first 24h.

robswc commented 6 years ago

Hey, not sure if you're still working on this, when I try running it on a raspberry pi 24/7 it will do about 3-5 posts and then simply stop and bring up the prompt as if its waiting for a new command and the script has finished.

Looking to run this 24/7 as a simple news aggregate bot for friends and I :)