Skip to content

Commit

Permalink
add: reddit tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Apr 1, 2024
1 parent 6a9e78c commit 5e714e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/reddit/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ async def main():
count = 0
sub = await reddit.subreddit(subreddit)
async for submission in sub.stream.submissions():
'''if count < 100: # This removes the 100 historical submissions that SubredditStream pulls.
if count < 100: # This removes the 100 historical submissions that SubredditStream pulls.
count += 1
continue'''
continue
if submission.link_flair_text == 'Searching':
text = f"{submission.selftext} {submission.title}"
tags = re.findall('[#PYLQGRJCUVOpylqgrjcuvo0289]{5,11}', text)
Expand Down

0 comments on commit 5e714e3

Please sign in to comment.