Projects STRLCPY OnionSearch Commits 7aec36b6
🤬
  • ■ ■ ■ ■
    README.md
    skipped 10 lines
    11 11  
    12 12  ## 📚 Currently supported Search engines
    13 13  - Ahmia
    14  -- TORCH
     14 +- TORCH (x2)
    15 15  - Darksearch io
    16 16  - OnionLand
    17 17  - not Evil
    skipped 148 lines
  • ■ ■ ■ ■ ■
    engines.py
    1 1  ENGINES = {
    2 2   "ahmia": "http://msydqstlz2kzerdg.onion",
    3 3   "torch": "http://xmh57jrzrnw6insl.onion",
     4 + "torch1": "http://mkojmtnv22hpbfxk.onion",
    4 5   "darksearchio": "http://darksearch.io",
    5 6   "onionland": "http://3bbad7fauom4d6sgppalyqddsqbf5u5p56b5k5uk2zxsy3d6ey2jobad.onion",
    6 7   "notevil": "http://hss3uro2hsxfogfq.onion",
    skipped 22 lines
  • ■ ■ ■ ■ ■ ■
    search.py
    skipped 145 lines
    146 146   progress_bar.close()
    147 147   
    148 148   
     149 +def torch1(searchstr):
     150 + torch1_url = supported_engines['torch1'] + "/search?q={}&cmd=Search!"
     151 + 
     152 + with tqdm(total=1, initial=0, desc="%20s" % "TORCH", unit="req", ascii=False, ncols=120,
     153 + bar_format=tqdm_bar_format) as progress_bar:
     154 + response = requests.get(torch1_url.format(quote(searchstr)), proxies=proxies, headers=random_headers())
     155 + soup = BeautifulSoup(response.text, 'html5lib')
     156 + link_finder("torch1", soup)
     157 + progress_bar.update()
     158 + progress_bar.close()
     159 + 
     160 + 
    149 161  def darksearchio(searchstr):
    150 162   global result
    151 163   result['darksearchio'] = []
    skipped 899 lines
    1051 1063   append_link()
    1052 1064   
    1053 1065   if engine_str == "torch":
     1066 + for r in data_obj.select("dl > dt > a"):
     1067 + name = clear(r.get_text())
     1068 + link = clear(r['href'])
     1069 + append_link()
     1070 + 
     1071 + if engine_str == "torch1":
    1054 1072   for r in data_obj.select("dl > dt > a"):
    1055 1073   name = clear(r.get_text())
    1056 1074   link = clear(r['href'])
    skipped 113 lines
Please wait...
Page is in error, reload to recover