Skip to content

Commit

Permalink
updated: path of tob parser
Browse files Browse the repository at this point in the history
  • Loading branch information
joswha committed Nov 1, 2023
1 parent d224d33 commit 8d9f48c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapers/tob_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def extract_finding(pdf_name):
text = extract_text("../pdfs/tob-audits/reviews/" + pdf_name)
text = extract_text("../pdfs/publications/reviews/" + pdf_name)

first_selection = text[text.find("Detailed Findings"):text.find("Summary of Recommendations")]

Expand Down Expand Up @@ -158,7 +158,7 @@ def jsonify_findings(pdf_name):

if __name__ == "__main__":

for json_file in os.listdir("../pdfs/tob-audits/reviews"):
for json_file in os.listdir("../pdfs/publications/reviews"):
jsonify_findings(json_file)

# only keep unique findings, the file contains an array of findings
Expand Down

0 comments on commit 8d9f48c

Please sign in to comment.