asimov-serpapi-module
v0.0.0
Published
ASIMOV module for data import powered by the SerpApi search data platform.
Downloads
3
Maintainers
Readme
ASIMOV SerpApi Module
ASIMOV module for data import powered by the SerpApi search data platform.
✨ Features
- Imports structured data from DuckDuckGo, Google, and Bing search results.
- Collects the raw JSON data via the SerpApi real-time API (requires an API key).
- Constructs a semantic knowledge graph based on the KNOW ontology.
- Supports plain JSON output as well as RDF output in the form of JSON-LD.
- Distributed as a standalone static binary with zero runtime dependencies.
🛠️ Prerequisites
- Rust 1.85+ (2024 edition) if building from source code
⬇️ Installation
Installation from PyPI
pip install -U asimov-serpapi-moduleInstallation from RubyGems
gem install asimov-serpapi-moduleInstallation from NPM
npm install -g asimov-serpapi-moduleInstallation from Source Code
cargo install asimov-serpapi-module👉 Examples
export SERPAPI_KEY="..."Fetching DuckDuckGo Results
asimov-serpapi-fetcher https://duckduckgo.com/?q=Isaac+Asimov # JSON
asimov-serpapi-importer https://duckduckgo.com/?q=Isaac+Asimov # JSON-LDFetching Google Results
asimov-serpapi-fetcher https://www.google.com/search?q=Isaac+Asimov # JSON
asimov-serpapi-importer https://www.google.com/search?q=Isaac+Asimov # JSON-LDFetching Bing Results
asimov-serpapi-fetcher https://www.bing.com/search?q=Isaac+Asimov # JSON
asimov-serpapi-importer https://www.bing.com/search?q=Isaac+Asimov # JSON-LD⚙ Configuration
Environment Variables
SERPAPI_KEY: (required) the SerpApi API key to use
📚 Reference
Installed Binaries
asimov-serpapi-fetcher: collects JSON data from the SerpApi real-time APIasimov-serpapi-importer: collects and transforms JSON into JSON-LD
Supported Engines
Engine | URL Prefix | JSON | RDF
:------ | :--------- | :--: | :--:
Bing | https://www.bing.com/search?q= | ✅ | ✅
DuckDuckGo | https://duckduckgo.com/?q= | ✅ | ✅
Google | https://www.google.com/search?q= | ✅ | ✅
| | |
👨💻 Development
git clone https://github.com/asimov-modules/asimov-serpapi-module.git