@@ -0,0 +1,1205 @@
+import pandas as pd%0Aimport argparse%0Aimport glob%0Aimport os%0A%0Aif __name__ == %22__main__%22:%0A%0A    parser = argparse.ArgumentParser(description='Process some integers.')%0A    parser.add_argument('--dir', type=str, default=%22it%22, help=%22directory where the files are stored%22)%0A    parser.add_argument('--top', type=int, default=100)%0A%0A    args = parser.parse_args()%0A%0A    min_year = 2007%0A    max_year = 2019%0A    top_k = args.top%0A%0A    total_pages = %5B%5D%0A%0A    for f in glob.glob(args.dir+%22*results.txt%22):%0A%0A        name = os.path.basename(f)%0A        year = int(name.split(%22.%22)%5B4%5D.split(%22-%22)%5B0%5D)%0A%0A        if not (year %3E= min_year and year %3C= max_year):%0A            continue%0A%0A        with open(f, %22r%22) as file:%0A            counter = 0%0A            for line in file:%0A%0A                if counter %3E= top_k:%0A                    break%0A%0A                data = line.split(%22%5Ct%22)%0A%0A                page_name = data%5B0%5D%5B6:-2%5D.replace(%22 %22, %22_%22)%0A                score = float(data%5B1%5D)%0A%0A                total_pages.append(page_name)%0A%0A                counter += 1%0A%0A    total_pages = set(total_pages)%0A    print(len(total_pages))%0A%0A    with open(%22result.txt%22, %22w+%22) as output:%0A%0A        for name in total_pages:%0A            output.write(name+%22%5Cn%22)%0A

Add script to parse pagerank results.