/
githubmirror
/
OpenAgents
Обзор
Документация
Войти
/
githubmirror
/
OpenAgents
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
real_agents/plugins_agent/plugins/web_scraper/paths/scraper.py
12 строк
399 B
Timothyxxx
Update: add Plugins Agent code
13 окт 2023, 17:37
13 окт 2023, 17:37
80366ca
Код
Авторство
О чём код?
"""Scrape data from a website using the Scraper API.""" import requests from typing import Any, Dict def call_api(input_json: Dict[str, Any]) -> Dict[str, Any]: response = requests.post("https://scraper.gafo.tech/scrape", json=input_json) if response.status_code == 200: return response.json() else: return {"status_code": response.status_code, "text": response.text}