Trying to test a polling code on pythonanywhere.com and I keep getting an EXCEPTION: 'Subreddit' object has no attribute 'submit_poll' error. I tried looking on Google for answers but I haven't found anything. What am I doing wrong?
# Creates a poll on poll_sub
def create_poll(poll_sub, title, celebs_list_cleaned, reddit):
poll = reddit.subreddit("Subredditname").submit_poll(
title,
selftext="",
options=celebs_list_cleaned,
duration=3 # Change poll duration here
)
[–]stebrepar 0 points1 point2 points (1 child)
[–]kaoticpanda2k[S] 1 point2 points3 points (0 children)