-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
25 lines (19 loc) · 830 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
# %%
from PhDParser import PhDParser, DisciplineParser
# %%
""" Fill in variables manually """
discipline = "psychology" # discipline (subject) to search within
recent_only = True # whether to only show recent projects
keywords = "development" # keywords should be comma separated
save_as_json = True # whether to save as .json in this file
json_output_path = "recent.json" # shouldn't need to change this
# %%
parser = PhDParser("law")
parser = PhDParser("psychology", keywords="development")
parser.saveAllAsJson()
# %%
""" Find matching PhD projects and save to class """
parser = PhDParser(discipline=discipline, recent_only=recent_only, keywords=keywords)
# %%
""" Save as .json file """
if save_as_json: parser.saveCurrentAsJson(output_path=json_output_path)