expanding the measures studied

This commit is contained in:
Matthew Gaughan 2023-12-18 20:43:39 -06:00
parent f1060e47af
commit 301973d822

View File

@ -0,0 +1,33 @@
import pexpect
import os
import json
import sys
import subprocess
import csv
#sys.path.append('../octohatrack')
#import octohatrack.__main__ as oh
def main():
wd = os.getcwd()
with open("expanded_data_final.csv", "r") as file:
reader = csv.reader(file)
for i, line in enumerate(reader):
if "github" not in line[5]:
continue
repo_name = line[5].strip()[19:]
print(repo_name)
os.chdir("../octohatrack")
try:
subprocess.run(['python3', '-m', 'octohatrack', repo_name])
except:
print("issue with the repository, string indices must be integers")
os.chdir(wd)
#os.chdir("../octohatrack")
#subprocess.run(['python3', '-m', 'octohatrack', 'bluesky-social/atproto'])
#os.chdir(wd)
if __name__ == "__main__":
main()