expanding the measures studied
This commit is contained in:
parent
f1060e47af
commit
301973d822
33
non_coding_measures_scrape.py
Normal file
33
non_coding_measures_scrape.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user