Update helper.py
Browse files
helper.py
CHANGED
@@ -24,7 +24,7 @@ def get_access_to_reddit(user_agent="financial sentiment analysis project (resea
|
|
24 |
return reddit
|
25 |
|
26 |
def get_write_access_to_hf():
|
27 |
-
login(token=os.getenv("
|
28 |
|
29 |
async def search_subreddits_by_keyword_in_name_or_description(reddit, search_string: str) -> List[asyncpraw.models.Subreddit]:
|
30 |
"""
|
|
|
24 |
return reddit
|
25 |
|
26 |
def get_write_access_to_hf():
|
27 |
+
login(token=os.getenv("REDDIT_WRITE"), write_permission=True)
|
28 |
|
29 |
async def search_subreddits_by_keyword_in_name_or_description(reddit, search_string: str) -> List[asyncpraw.models.Subreddit]:
|
30 |
"""
|