beyond2021 0.0.3
Install from the command line:
Learn more about npm packages
$ npm install @bottlycorp/beyond2021@0.0.3
Install via package.json:
"@bottlycorp/beyond2021": "0.0.3"
About this version
Beyond2021 is a package to get data from the web. It uses Google Search API and OpenAI API to get data from the web.
Use PNPM or PNPM and install the pacakges pnpm install
or npm install
Set the required environment variables
export const web = new DataBeyond({
GOOGLE_SEARCH_API_KEY: "",
GOOGLE_SEARCH_ENGINE_ID: "",
OPENAI_API_KEY: "",
OPENAI_ORGANIZATION_ID: "", // Optional
MULTIPLE_SEARCH_API_KEYS: [], // Optional (Key table for using a new key if it is rate-limited)
});
const dataWebSearch = await websearch.search("What is the best way to learn programming?");
const url = dataWebSearch.url ?? "No url found";
const content = dataWebSearch.content;
Details
- beyond2021
- bottlycorp
- over 1 year ago
- ISC
- 11 dependencies
Assets
- beyond2021-0.0.3.tgz
Download activity
- Total downloads 30
- Last 30 days 0
- Last week 0
- Today 0