gives user thread stats

pull/354/head
null3000 3 years ago committed by GitHub
parent 41ebf3b5e5
commit eeeaff0a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,7 +57,14 @@ def get_subreddit_threads():
threads = subreddit.hot(limit=25)
submission = list(threads)[random.randrange(0, 25)]
print_substep(f"Video will be: {submission.title} :thumbsup:")
upvotes=submission.score
ratio=submission.upvote_ratio * 100
num_comments=submission.num_comments
console.log(f"[bold green] Video will be: {submission.title} :thumbsup:")
console.log(f"[bold blue] Thread has " + str(upvotes) + " upvotes")
console.log(f"[bold blue] Thread has a upvote ratio of " + str(ratio) + "%")
console.log(f"[bold blue] Thread has " + str(num_comments) + " comments")
console.log("Getting video comments...")
try:
content["thread_url"] = submission.url

Loading…
Cancel
Save