So im trying to make a bot that fetch random post url's from a subreddit and want it to check if the login credentials are valid so heres what i came up with:
import praw
import pandas as pd
import datetime as dt
username = input("Your user name:\n")
password = input("Your Password:\n")
reddit = praw.Reddit(client_id='xxxxxxxxxxxxx', \
client_secret='xxxxxxxxxxxxxxxxxxxxxxxx', \
user_agent='Fetch', \
username=username, \
password=password)
if reddit == thats where i dont know what to type
submission = reddit.subreddit("gtaonline").random()
print(submission.url)
else:
print("Enter valid credentials")
quit()