Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 1286

Fast and Powerful Domain Sorter (Coded by me)

by theriddler - 20 March, 2022 - 10:55 PM
This post is by a banned member (theriddler) - Unhide
86
Posts
27
Threads
5 Years of service
#1
I updated my original combo sorter.
Please LIKE if you enjoy the script.
 
INFORMATION:
This will now go trough the folder you put this script in and all subfolders.
You can define domain name or country or anything you want really.
 
example ( Type without quotes ):
".de" will save all german combos.
 
"yahoo" will save all yahoo combos.
 
It went trough main folder and 11 subfolders totaling 121 files at around 100-300MB+ each file in about 16 minutes.
The 121 files extracted 1.25GB of lines with ".de"
it will show how long each file takes and it will tell you how long all of it took after it is done.
 
PREVIEW:
[Image: BTcOKbw.png]
 
INSTALLATION:
Save all of the code to a python file.
[Image: C0UpEDz.png]
Either right-click > Edit with IDLE > Press F5 to execute
or
open a terminal/cmd window and write python filename.py
 
[HIDE]
Code:
import glob, os
import time
 
save = input("Name of the file you want to extract to: ")
domain = input("domain you wish to extract .com / .dk example(.co.uk): ")
then = time.time()
 
 
for filename in glob.iglob('**', recursive=True):
    if filename.endswith(".txt"):
        thenx = time.time()
        with open(filename, errors='ignore') as f:
            lines = [l for l in f if domain in l]
            now = time.time() #Time after it finished
            print("Filename: " +filename+" It took: ", now-thenx, " seconds so far")
            with open(save+".txt", 'a') as fi:
                for listitem in lines:
                    fi.write(listitem)
                   
 
print("It took: ", now-then, " seconds in TOTAL")
[/HIDE]
Making Openbullet configs and Python scripts.
This post is by a banned member (kartoffel670) - Unhide

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)