WebSearch

tool

使用searxng和jina进行联网

2171
@2171
·
2 years ago
841
0
2.5K
Created Oct 18, 2024
websearch.py
Python · 143 lines
import asyncio
import aiohttp
from typing import Callable, Any, Optional, List
from urllib.parse import quote

EmitterType = Optional[Callable[[dict], Any]]


class EventEmitter:
    def __init__(self, event_emitter: EmitterType):
        self.event_emitter = event_emitter

使用searxng和jina进行联网


0