llama-index-asimov
📦 Packages
This repository currently provides:
| Package | Description | PyPI |
|---|---|---|
llama-index-readers-asimov |
Reader module that runs ASIMOV importers via subprocess | 📦 PyPI |
🛠️ Prerequisites
⬇️ Installation
Installation from PyPI
👉 Examples
DuckDuckGo Results via SerpAPI
from llama_index.readers.asimov import AsimovReader
reader = AsimovReader(
module="serpapi",
url="https://duckduckgo.com/?q=LangChain+roadmap"
)
for result in reader.load_data():
print(result)
[!TIP] On your host, make sure that
asimov-serpapi-importercan be found in yourPATHand that you've defined theSERPAPI_KEYenvironment variable:
X (Twitter) Profile via Bright Data
Use e.g. the Bright Data module to fetch a public X profile:
from llama_index.readers.asimov import AsimovReader
reader = AsimovReader(
module="brightdata",
url="https://x.com/llama_index"
)
for result in reader.load_data():
print(result)
[!TIP] On your host, make sure that
asimov-brightdata-importercan be found in yourPATHand that you've defined theBRIGHTDATA_API_KEYenvironment variable:
X (Twitter) Followers via Apify
Use e.g. the Apify module to fetch the followers/followees for an X profile:
from llama_index.readers.asimov import AsimovReader
reader = AsimovReader(
module="apify",
url="https://x.com/llama_index/followers"
)
for result in reader.load_data():
print(result)
[!TIP] On your host, make sure that
asimov-apify-importercan be found in yourPATHand that you've defined theAPIFY_TOKENenvironment variable:
📚 Reference
llama-index-asimov.readthedocs.io