new changes

This commit is contained in:
root 2025-01-05 17:01:37 +01:00
parent 8fb883aa40
commit e27d8f9dce
11 changed files with 374 additions and 136 deletions

View file

@ -1,7 +1,7 @@
import csv, json, pandas as pd, glob
def main():
print("aaa")
#print("aaa")
csvfile="verified.csv"
df = pd.read_csv(csvfile)
#for i in range (df.index.stop):
@ -12,26 +12,123 @@ def main():
# print(df.at[i][col])
#print(df)
print("[+] Display 2 columns:")
# print("[+] Display 2 columns:")
#display 2 columns:
print(df[['Name', 'URL']])
# print(df[['Name', 'URL']])
print("[+] Display rows 0 to 5")
# print("[+] Display rows 0 to 5")
#display rows from 0 to 5
print(df[0: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("[+] 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")
# 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']])
# 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("[+] Display all rows for all columns")
# print(df[0:df.index.stop])
##############################################################################
print('\n[+] list the entire csv file and get all row IDs')
print(df[['Name', 'URL']])
index=-1
while (index > df.tail(1).index.item() or index < 0):
#index=input("\n[+] What entry do you want to edit ? (enter the row index (ex: 4)")
index=4
index=int(index)
print(df.iloc[index], "last index:", df.index.stop-1)
print("\n[+] Number of Rows:", len(df.index)-1)
print('\n[+] Iterate over the rows by their IDs for the 2 Columns URL and Name')
print(df.iterrows())
for i,j in df.iterrows():
#print("[+] ROW=",i,"\n[+] CONTENT=\n",j)
#print("[+] ROW=",i)
#print("[+] ROW CONTENTS= \n",df.loc[i, ['URL','Name']])
#print("[+] ROW CONTENTS= \n",df.loc[i, ['URL']])
print("[+] ROW=",i,"ROW CONTENTS=", df.at[i, 'Name'], df.at[i, 'URL'])
#print(df[0][i])
print('\n[+] Iterate over the columns by their name:')
columns = list(df)
print(columns)
print('\n[+] Iterate over the columns of the first row:')
for i in columns:
print('\nCOLUMN=',i)
print('CONTENTS=',df[i][0])
#print('[+] list the csv file by filtering a keyword and get all row IDs')
#filterterm=input("[+] Filter the CSV file using a keyword (ex: DNM)")
filterterm="Psy"
filter_df = df[df.Name.str.contains(filterterm)]
#print(filtered_df) # print all columns
print(filter_df[['Name','URL']]) #print only 2 columns
#print("\n[+] Number of Rows:", len(filter_df.index))
#for index in filter_df.index:
#print(index)
index=-1
while (index not in filter_df.index):
#index=int(input("\n[+] Please select a valid row: "))
index=int("1")
print("ROW=",index, 'CONTENT=', filter_df.at[index, 'Name'], filter_df.at[index, 'URL'])
print("\n[+] Adding a new row:")
# ask for the following:
#unverifiedpath=instancepath+'/unverified.csv'
instance='uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion'
unverifiedpath='verified.csv'
# the name of the website (required) + check if its valid
# if the website name is "exit" then get out of the while loop
#entry_name = input("What is the Website name ?")
name="NewWebsite"
category="TestCategory"
# the url of the website (required) + check if its valid
#entry_url = input("What is URL of the Website ? (ex: https://torproject.org or http://2gzyxa5ihm7nsggfxnu52rck2vv4rvmdlkiu3zzui5du4xyclen53wid.onion)")
url="http://newwebsitewoidwajiawdhjoidwahjoadiwhj.onion"
# a quick description (optional) + check if its valid
#entry_desc = input("(Optional) Description of the website ? (max 256 characters) (press enter to skip)")
desc="This is a new website that we add, it has this description"
# sensitive ? (y/n) + check if its valid
#entry_sensi = input("is it a sensitive website ? (ex: website related to drugs) (y/n)")
sensi = "n"
newrow=[instance,category,name,url,sensi,desc,'','']
print("[+] NEWROW=",newrow)
#add a new row (get all the new data you need first):
df.loc[-1] = newrow # adding a row
df.index = df.index + 1 # shifting index
df = df.sort_index() # sorting by index
print("[+] New row added! now writing the csv file:")
df.to_csv(csvfile, index=False)
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
if __name__ == '__main__':
main()

View file

@ -1,12 +1,13 @@
Instance,Category,Name,URL,Sensitive,Description,Status,Score
uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,TestCategory,NewWebsite,http://newwebsitewoidwajiawdhjoidwahjoadiwhj.onion,n,"This is a new website that we add, it has this description",,
uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,TestCategory,NewWebsite,http://newwebsitewoidwajiawdhjoidwahjoadiwhj.onion,n,"This is a new website that we add, it has this description",,
FIRSTherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,Psychonaut Wiki,http://vvedndyt433kopnhv6vejxnut54y5752vpxshjaqmj7ftwiu6quiv2ad.onion/,,"This is the wiki for psychonauts, it contains infos on substances and trip reports",✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,"General guide on how to navigate the Darknet to buy drugs",✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,"General guide on how to navigate the Darknet to buy drugs",✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,"General guide on how to navigate the Darknet to buy drugs",✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,"General guide on how to navigate the Darknet to buy drugs",✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,"General guide on how to navigate the Darknet to buy drugs",✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,"General guide on how to navigate the Darknet to buy drugs",✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,"General guide on how to navigate the Darknet to buy drugs",✔️,100.0
LASTherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,"General guide on how to navigate the Darknet to buy drugs",✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,1DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,General guide on how to navigate the Darknet to buy drugs,✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,2DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,General guide on how to navigate the Darknet to buy drugs,✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,3DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,General guide on how to navigate the Darknet to buy drugs,✔️,100.0
somewh3refoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,4DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,General guide on how to navigate the Darknet to buy drugs,✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,5DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,General guide on how to navigate the Darknet to buy drugs,✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,6DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,General guide on how to navigate the Darknet to buy drugs,✔️,100.0
somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,7DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,General guide on how to navigate the Darknet to buy drugs,✔️,100.0
nowherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,8DNM Bible,http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/,✔️,General guide on how to navigate the Darknet to buy drugs,✔️,100.0
LASTherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,Psychonaut Wiki,http://vvedndyt433kopnhv6vejxnut54y5752vpxshjaqmj7ftwiu6quiv2ad.onion/,,"This is the wiki for psychonauts, it contains infos on substances and trip reports",✔️,100.0

1 Instance Category Name URL Sensitive Description Status Score
2 uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion TestCategory NewWebsite http://newwebsitewoidwajiawdhjoidwahjoadiwhj.onion n This is a new website that we add, it has this description
3 uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion TestCategory NewWebsite http://newwebsitewoidwajiawdhjoidwahjoadiwhj.onion n This is a new website that we add, it has this description
4 FIRSTherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links Psychonaut Wiki http://vvedndyt433kopnhv6vejxnut54y5752vpxshjaqmj7ftwiu6quiv2ad.onion/ This is the wiki for psychonauts, it contains infos on substances and trip reports ✔️ 100.0
5 somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links DNM Bible 1DNM Bible http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/ ✔️ General guide on how to navigate the Darknet to buy drugs ✔️ 100.0
6 somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links DNM Bible 2DNM Bible http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/ ✔️ General guide on how to navigate the Darknet to buy drugs ✔️ 100.0
7 somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links DNM Bible 3DNM Bible http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/ ✔️ General guide on how to navigate the Darknet to buy drugs ✔️ 100.0
8 somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion somewh3refoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links DNM Bible 4DNM Bible http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/ ✔️ General guide on how to navigate the Darknet to buy drugs ✔️ 100.0
9 somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links DNM Bible 5DNM Bible http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/ ✔️ General guide on how to navigate the Darknet to buy drugs ✔️ 100.0
10 somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links DNM Bible 6DNM Bible http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/ ✔️ General guide on how to navigate the Darknet to buy drugs ✔️ 100.0
11 somewherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links DNM Bible 7DNM Bible http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/ ✔️ General guide on how to navigate the Darknet to buy drugs ✔️ 100.0
12 LASTherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion nowherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links DNM Bible 8DNM Bible http://biblemeowimkh3utujmhm6oh2oeb3ubjw2lpgeq3lahrfr2l6ev6zgyd.onion/ ✔️ General guide on how to navigate the Darknet to buy drugs ✔️ 100.0
13 LASTherefoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion Infos and Links Psychonaut Wiki http://vvedndyt433kopnhv6vejxnut54y5752vpxshjaqmj7ftwiu6quiv2ad.onion/ This is the wiki for psychonauts, it contains infos on substances and trip reports ✔️ 100.0