Skip to main content

Deepground - A Python library that empowers LLM agents with real-time data access from both the clear and dark net.

Project description

Deepground

Deepground

Deepground – Clearnet + Darknet Search & Fetcher

Python License

Version Repo Size
Stars
Forks

Deepground - this is a Python library that empowers LLM agents with real-time data access from buth the clearnet and darknet.
This library is design for developers, hackers, pentesters, researchers, and AI agents who need real-time datas from both the clearnet and darknet to their CLI.

Overview

The deepground project was developed by evilfeonix and designed to evaluate the performance of llm and their applications. It gives your LLM the power to access and monitor real-time data from the net for free without limitation or restriction.

Features

  • Support sync / async(parallel fetching) mode, depending on your workflow.
  • Fetch context and extract sources (raw HTML/code/text) from URLs.
  • Integrate seamlessly with LangChain and other LLM frameworks.
  • Searches across clearnet/darknet sources with ease.
  • Built-in caching + logging
  • Error handling

Installation

pip install deepground

For dev:

git clone https://github.com/evilfeonix/deepground.git
cd deepground
pip install -e .
python3 run.py

Usage

Simple Usage:

from deepground.core import Grounder

g = Grounder()
print(g.search("latest AI news"))

g_tor = Grounder(use_tor=True)
print(g_tor.dark_search("leaked databases"))

Synchronous:

from deepground.core import Grounder


# Clearnet search
g = Grounder(use_tor=False)
r = g.search("Python hacking", limit=3)
print(r)

# Darknet search
g_tor = Grounder(use_tor=True)
d_r = g_tor.dark_search("market", limit=3)
print(d_r)

# Fetch readable content (page)
p = g.fetch_context("https://example.com")
print(p["content"])

# Fetch row source (code/text)
s = g_tor.fetch_source("https://somesite.onion/ABCDEF.txt")
print(s["source"])

Asynchronous:

import asyncio
from deepground.core import GrounderAsync

async def main():
    async with GrounderAsync(use_tor=False) as g:
        results = await g.search("cybersecurity news", limit=3)
        print(results)

        source = await g.multi-fetch("https://example.com,https://example.net", context=False)
        print(source["source"][:300])

asyncio.run(main())

LangChain Integration:

from deepground.core import GrounderTool

tool = GrounderTool(use_tor=True)

print(tool._run("search:latest AI news"))
print(tool._run("dark_search:proxies combo list"))
print(tool._run("fetch_context:https://github.com"))
print(tool._run("fetch_source:https://somesite.onion"))
print(tool._run("multi-fetch:https://ss1.onion,https://ss2.onion"))

Langchain Agent

Feed results directly into your LLM agents for grounded, real-world context:

from deepground.core import Grounder

# Clearnet search
g = Grounder()
res = g.search("naija latest tech news")
ctx = g.fetch_context("https://example.com/article")

# Darknet search with Tor
g_tor = Grounder(use_tor=True)
d_res = g_tor.dark_search("fresh proxies list")
d_ctx = g_tor.fetch_context("http://somesite.onion/article")

# Feed into LLM

from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)

answer = llm.invoke(f"Summarize:\n\n{ctx}")
print(answer)

For darknet features:

TOR running locally (socks5://127.0.0.1:9050)

pip install requests[socks]

Logging & Caching

Cache stored at: ~/.deepground/cache
Log file: ~/.deepground/deepground.log

Documentation

Detailed documentation includeing full guides, and examples can be found at our official website https://evilfeonix.eu.org

Contrubuting

Contributors are welcome to this journey, feel free to :

  • Report bugs via github issues.
  • Suggest feature with use cases.
  • Submit PRs with clear description.

Disclaimer

This library is for educational and research purposes only. Authors will never ever be responsible for any misuse or damage cause by this project.

LICENSE

Use MIT license:

MIT License
Copyright (c) 2025 Evilfeonix
Permission is hereby granted, free of charge...

Powered by

This project is made posibly thanks to those infrastructure with their generous supports.

OpenAI Ahmia DDGS License Python License

Python
PyPI
License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepground-0.8.2.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepground-0.8.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file deepground-0.8.2.tar.gz.

File metadata

  • Download URL: deepground-0.8.2.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for deepground-0.8.2.tar.gz
Algorithm Hash digest
SHA256 ae5667036f6145ed4163ee04660d39c31206486966f4222bfd2f31fa35e0bad3
MD5 788447887a96285ee9371a6a3b3450ac
BLAKE2b-256 5496a5d2a9ad1c8165f4dfa41d3603ad84689d1c6522a8442c38af2e91e7623f

See more details on using hashes here.

File details

Details for the file deepground-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: deepground-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for deepground-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab6d8dd3044b192e32424e106f3af6e68bda43b406bc646303028f0ad69dfda2
MD5 589189d14b55b36a702838988756969f
BLAKE2b-256 3e9dcdda1fc25b603bb3a84b7aaa5a63cad444387e23bb42b18056f84eade721

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page