I'm trying to make a script that gets the number of various notifications from websites I use. Unread emails, you number of unread reddit/facebook messages, and I'd also like to get the number of stackoverflow notifications.
Unfortunately googling any python scripts to get information from stack overflow gets me questions on stack overflow, not regarding stack overflow.
Is it possible to get something along the lines of these two scripts but for stack exchange?
import imaplib
import praw
obj = imaplib.IMAP4_SSL("imap.gmail.com","993")
obj.login("","")
obj.select()
obj.search(None,'UnSeen')
unread_gmail = len(obj.search(None, "UnSeen")[1][0].split())
print("Unread emails:", unread_gmail)
r = praw.Reddit(user_agent = "example")
r.login("", "")
i = 0
for message in r.get_unread(): i += 1
unread_reddit = i
print("Unread reddit:", unread_reddit)