update cron job

This commit is contained in:
MuslemRahimi 2024-07-27 23:19:22 +02:00
parent 5cf219f05e
commit 0f733ba574
2 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,12 @@ reddit = praw.Reddit(
user_agent=user_agent
)
# Get subscriber count and active user count
#subreddit = reddit.subreddit("wallstreetbets")
#subscriber_count = subreddit.subscribers
#active_user_count = subreddit.active_user_count
# Function to save data
def save_data(data, filename):
with open(f'json/reddit-tracker/wallstreetbets/{filename}', 'w', encoding='utf-8') as f:

View File

@ -473,7 +473,7 @@ schedule.every(15).minutes.do(run_threaded, run_cron_market_news).tag('market_ne
schedule.every(10).minutes.do(run_threaded, run_one_day_price).tag('one_day_price_job')
schedule.every(15).minutes.do(run_threaded, run_cron_heatmap).tag('heatmap_job')
schedule.every(30).minutes.do(run_threaded, run_reddit_tracker).tag('reddit_tracker_job')
schedule.every(10).minutes.do(run_threaded, run_reddit_tracker).tag('reddit_tracker_job')
schedule.every(1).minutes.do(run_threaded, run_cron_quote).tag('quote_job')