Skip to content

Repository files navigation

Desearch JS Example

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.

Prerequisites

  • Node.js installed on your machine.
  • An API key for the Desearch service.

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/desearch-js-example.git
  1. Navigate to the project directory:
cd desearch-js-example

Prerequisites

  • Node.js installed on your machine (version 20.18.1).
  • An API key for the Desearch service.
  1. Install the dependencies:
npm install

Usage

Before running any of the scripts, ensure you have replaced 'your-api-key' with your actual Desearch API key in the respective files.

AI Search

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 aiSearch

Basic Twitter Search

The 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 basicTwitterSearch

Web Links Search

The 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 webLinksSearch

Twitter Links Search

The twitterLinksSearch.js script demonstrates how to search for Twitter posts.

To run the Twitter Links Search script, use the following command:

npm run twitterLinksSearch

Basic Web Search

The basicWebSearch.js script shows how to perform a basic web search.

To run the Basic Web Search script, use the following command:

npm run basicWebSearch

Fetch Tweets by URLs

The 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 twitterByUrls

Fetch Tweets by ID

The 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 twitterById

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

Contact

For any questions or support, please contact your-email@example.com.

Releases

Packages

Used by

Contributors

Languages