33 lines
887 B
Python
33 lines
887 B
Python
|
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()
|