| skipped 75 lines |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | parser = argparse.ArgumentParser(epilog=print_epilog(), formatter_class=argparse.RawTextHelpFormatter) |
79 | | - | parser.add_argument("--proxy", default='localhost:9050', type=str, help="Set Tor proxy (default: 127.0.0.1:9050)") |
| 79 | + | parser.add_argument("--proxy", default='localhost:9150', type=str, help="Set Tor proxy (default: 127.0.0.1:9150)") |
80 | 80 | | parser.add_argument("--output", default='output_$SEARCH_$DATE.txt', type=str, |
81 | 81 | | help="Output File (default: output_$SEARCH_$DATE.txt), where $SEARCH is replaced by the first " |
82 | 82 | | "chars of the search string and $DATE is replaced by the datetime") |
| skipped 852 lines |
935 | 935 | | freeze_support() |
936 | 936 | | |
937 | 937 | | results = {} |
938 | | - | with Pool(units, initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) as p: |
| 938 | + | with Pool(units) as p: |
939 | 939 | | results_map = p.map(run_method, func_args) |
940 | 940 | | results = reduce(lambda a, b: a + b if b is not None else a, results_map) |
941 | 941 | | |
| skipped 20 lines |