WIP still, but good progress on option 4

This commit is contained in:
root 2025-01-09 22:12:19 +01:00
parent d891df79a2
commit 9d81e7a779
10 changed files with 420 additions and 107 deletions

View file

@ -4,37 +4,6 @@ def main():
#print("aaa")
csvfile="verified.csv"
df = pd.read_csv(csvfile)
#for i in range (df.index.stop):
# print(i,df.at[i,i])
#for i in range (df.index.stop):
# for col in df.columns.values.tolist():
# print(df.at[i][col])
#print(df)
# print("[+] Display 2 columns:")
#display 2 columns:
# print(df[['Name', 'URL']])
# print("[+] Display rows 0 to 5")
#display rows from 0 to 5
# print(df[0:5])
#display rows from 0 to 5
# print("[+] Display rows 3 to 5 and columns Name and URL")
# print(df.loc[3:5,['Name','URL']])
#print(df[0:1,['Name','URL']])
# print("[+] Display all rows for and columns name and URL")
#df.loc[startrow:endrow, startcolumn:endcolumn]
# print(df.loc[0:df.index.stop,['Name','URL']])
#display rows from 0 to the end of indexes
# print("[+] Display all rows for all columns")
# print(df[0:df.index.stop])
##############################################################################
print('\n[+] list the entire csv file and get all row IDs')
@ -83,7 +52,7 @@ def main():
index=-1
while (index not in filter_df.index):
#index=int(input("\n[+] Please select a valid row: "))
index=int("1")
index=int("12")
print("ROW=",index, 'CONTENT=', filter_df.at[index, 'Name'], filter_df.at[index, 'URL'])
@ -120,15 +89,16 @@ def main():
print(df)
#write the dataframe into the csv file
#read and print the contents of the csv file
#re-add that row in the csv file
#remove that row from the dataframe
print()
# then select a row in it (by the ID) and display it
# list
###########
# list every word in the blacklist wordlist csv file
# for each word, check if it matches with any of the rows in unverified.csv
# if it matches (on any column!), remove that row and write to the csv file
# list every word in the sensitive wordlist csv file
# if it matches (on any column!), mark the sensitive column as V
if __name__ == '__main__':
main()