Do Not Call Database
Getting from the database to detect spam callers
Origin
Overview
Step 1: Outlining
Main Code
def main():
print("Welcome to the Do Not Call Database Builder")
running = True
search = False
while running:
print("Here is what we can do")
print("0. Help MEEE.")
print("1. Create a database")
print("2. Update the Database")
print("3. More data in the database")
print("4. Crush Database")
print("5. Clean Database")
print("6. Mega Good-Bad ReBase")
print("7. Prepare Searchable Database")
print("8. Search Number")
print("9. Quit")
selection = 3
try:
if waitBeforeStart:
time.sleep(600)
selection = int(input("What are we doing: "))
except:
print("That doesn't seem to be an int")
if selection == 0:
print("Help Selection")
print("Please select which one you need help explaining")
helpMenu()
# Do the dialog here of what each one is for
if selection == 1:
print("Creating the database")
print(initalizeDatabase())
elif selection == 2:
print("Updating the database")
print(updateDatabase(line.strip()))
elif selection == 3:
print("Adding more data")
print(FullDayData())
elif selection == 4:
print("Crushing Database")
fileLog.write("[" + getTimeNow() + "] Selection: Update Database\n")
fileLog.flush()
crushDatabase()
elif selection == 5:
print("Cleaning Database")
dupCleanDatabase() # Duplicates in toRead file
elif selection == 6:
print("Merging all done files")
rebase()
elif selection == 7:
print("Preparing Database")
prepDatabase()
elif selection == 8:
print("Done Building")
print("seach Number")
elif selection == 9:
print("Quitting")
running = False
search = False
else:
print("That is not an option")Class Names
Precautions
API response
Suspended
Step 2: Building Database
Initializing Database
Create Folder
Create Database
Cleaning Data
Step 3: Cleaning and Validating
Clean to Read
Clean JSON
Clean Records
Rewinding
Compare Cleaning
Step 4: Enriching
Finding folder
Finding File
Step 5: Updating Database
Node Class
Good and Bad
Step 6: Transferring
JSON to CSV
Step 7: Crushing
Merging
Double-check
Step 8: Recall
Queueing Entries
Finding entries
Finally
Files
Last updated