pyfedi/test_interest_parse.py
2023-09-05 20:25:10 +12:00

12 lines
353 B
Python

from app.cli import parse_communities
from app.utils import file_get_contents
interests = file_get_contents('interests.txt')
communities = parse_communities(interests, 'gaming')
print(communities)
communities = parse_communities(interests, 'chilling')
print(communities)
communities = parse_communities(interests, 'mental health')
print(communities)