import praw
import requests

from pushbullet import Pushbullet
pb = Pushbullet("enter your api key here")

requests.packages.urllib3.disable_warnings()
r = praw.Reddit(user_agent="Today_I_Learned_applicaton")
submissions = r.get_subreddit("todayilearned").get_hot(limit=2)
TopPost = ""
firstTime = False

for x in submissions:
   if( not firstTime):
        firstTime = True
        continue 
   TopPost = x.title
push = pb.push_note("Top post from Today I learned!" , TopPost)

481b621cb5c4f2d214931d8ed85d958df8e46740
<mask token>

<mask token>
requests.packages.urllib3.disable_warnings()
<mask token>
for x in submissions:
    if not firstTime:
        firstTime = True
        continue
    TopPost = x.title
<mask token>

<mask token>
pb = Pushbullet('enter your api key here')
requests.packages.urllib3.disable_warnings()
r = praw.Reddit(user_agent='Today_I_Learned_applicaton')
submissions = r.get_subreddit('todayilearned').get_hot(limit=2)
TopPost = ''
firstTime = False
for x in submissions:
    if not firstTime:
        firstTime = True
        continue
    TopPost = x.title
push = pb.push_note('Top post from Today I learned!', TopPost)

import praw
import requests
from pushbullet import Pushbullet
pb = Pushbullet('enter your api key here')
requests.packages.urllib3.disable_warnings()
r = praw.Reddit(user_agent='Today_I_Learned_applicaton')
submissions = r.get_subreddit('todayilearned').get_hot(limit=2)
TopPost = ''
firstTime = False
for x in submissions:
    if not firstTime:
        firstTime = True
        continue
    TopPost = x.title
push = pb.push_note('Top post from Today I learned!', TopPost)

import praw
import requests

from pushbullet import Pushbullet
pb = Pushbullet("enter your api key here")

requests.packages.urllib3.disable_warnings()
r = praw.Reddit(user_agent="Today_I_Learned_applicaton")
submissions = r.get_subreddit("todayilearned").get_hot(limit=2)
TopPost = ""
firstTime = False

for x in submissions:
   if( not firstTime):
        firstTime = True
        continue 
   TopPost = x.title
push = pb.push_note("Top post from Today I learned!" , TopPost)
