repo_description: Uscrapper Vanta: Dive deeper into the web with this powerful open-source tool. Extract valuable insights with ease and efficiency, from both surface and deep web sources. Empower your data mining and analysis with Vanta's advanced capabilities. Fast, reliable, and user-friendly, Uscrapper Vanta is the ultimate choice for researchers and analysts.
repo_topics: darkweb darkweb-crawler information-extraction information-gathering osint osint-python osint-tool python reconnaissance selenium selenium-webscraper tor web-scraping webcra webcrawler webscraping website-scraper websites
code: # start_tor.py
  from stem import process
  from termcolor import colored
  def start_tor():
      print(colored("[!] Initializing TOR Services...", "yellow"))
      try:
          tor_process = process.launch_tor_with_config(
              config={
                  'SocksPort': '9050',
                  'ControlPort': '9051',
              },
              take_ownership=True,
          )
          print(colored("[\u2713] Tor service started successfully.", "green"))
          return tor_process
      except Exception as e:
          print(f"Error starting Tor service: {e}")
          return None
  
  def stop_tor(tor_process):
      if tor_process:
          tor_process.kill()