This repository contains examples of using the desearch-js library to perform various types of searches using the Desearch API. The examples demonstrate how to perform AI searches, Twitter searches, web link searches, and more.
- Node.js installed on your machine.
- An API key for the Desearch service.
- Clone the repository:
git clone https://github.com/yourusername/desearch-js-example.git- Navigate to the project directory:
cd desearch-js-example- Node.js installed on your machine (version 20.18.1).
- An API key for the Desearch service.
- Install the dependencies:
npm installBefore running any of the scripts, ensure you have replaced 'your-api-key' with your actual Desearch API key in the respective files.
The AISearch.js script demonstrates how to perform an AI search using the Desearch client.
To run the AI Search script, use the following command:
npm run aiSearchThe basicTwitterSearch.js script shows how to perform a basic Twitter search with various filters.
To run the Basic Twitter Search script, use the following command:
npm run basicTwitterSearchThe webLinksSearch.js script performs a search for web links using the Desearch client.
To run the Web Links Search script, use the following command:
npm run webLinksSearchThe twitterLinksSearch.js script demonstrates how to search for Twitter posts.
To run the Twitter Links Search script, use the following command:
npm run twitterLinksSearchThe basicWebSearch.js script shows how to perform a basic web search.
To run the Basic Web Search script, use the following command:
npm run basicWebSearchThe twitterByUrls.js script shows how to perform a search for Tweets by URLs.
To run the Fetch Tweets by URLs script, use the following command:
npm run twitterByUrlsThe twitterById.js script shows how to perform a search for Tweets by ID.
To run the Fetch Tweets by ID script, use the following command:
npm run twitterByIdThis project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
For any questions or support, please contact your-email@example.com.