generated from m1cypher/Best-README-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
44 lines (29 loc) · 983 Bytes
/
main.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
40
41
42
import os
import logging
from dotenv import load_dotenv
from pprint import pprint
from ghostAdmin import GhostAdmin
from repositoryScanning import GithubReviewAdmin
from dataAccessor import dataAccessor
from imageProcessing import ImageOverlay
# logging.basicConfig(
# level=logging.INFO,
# format='%(asctime)s - %(levelname)s - %(message)s',
# datefmt='%Y-%m-%d %H:%M:%S',
# filename= os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data/hermodr.log')
# )
# def get_content():
# GithubReviewAdmin.fetch_content
def main():
load_dotenv()
GITHUB_API_KEY = os.getenv("GITHUB_API_KEY")
da = dataAccessor()
da.initialize_db()
gra = GithubReviewAdmin(GITHUB_API_KEY)
# ga = GhostAdmin()
# img = ImageOverlay()
gra.process_reviews("TV Shows", "tv")
# movie_accessor = gra.process_reviews("Movies", "movie")
# book_accessor = gra.process_reviews("Books", "book")
if __name__ == "__main__":
main()