-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRedditBot.py
39 lines (30 loc) · 1.22 KB
/
RedditBot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from LoginControl import login_subreddit , subreddit_name_provider
from BrowserControl import browser_close, browserConfig as mainDriver
from GetPost import go_to_subreddit
from SubscriberPlot import subscriber_plot
from FollowPopularSubreddits import follow_popular
from DiscoverSubreddit import discover_subreddit
from TopPost import go_to_subreddit
# Open browser
driver = mainDriver()
# Logs you into account
# login_subreddit(driver)
# Gets the names of each subreddit
#subreddit_names = subreddit_name_provider(driver)
'''
# Go to your subreddits
for i in range((len(subreddit_names))):
go_to_subreddit(driver, subreddit_names[i])
'''
# This function will plot a graph of all subreddits subscribed against number of subscribers and people online
#subscriber_plot(driver, subreddit_names)
# This function will follow top 5 popular subreddits
#follow_popular(driver)
# This function will discover a new random subreddit and subscribe to it
#discover_subreddit(driver)
# Closes down the browser
#browser_close(driver)
# This function will allow you to visualize comment and vote ratio's from post within specific sub reddit.
# go_to_subreddit(driver)