Giter VIP home page Giter VIP logo

node-red-flow-brave's Introduction

node-red-flow-brave

Node-RED flow to run an internet search using Brave.com and parse its findings

Brave Flow Screenshot

This repository contains a simple flow which runs an internet search using Brave.com and parses its results.

Just a small note: if you like this work and plan to use it, consider "starring" this repository (you will find the "Star" button on the top right of this page), so that I know which of my repositories to take most care of.

Installation

This flow relies on Axios for the communication with Startpage.com.

Simply import the contents of file Brave-Flow.json into your Node-RED Flow Editor and Axios will be installed as well (if necessary)

Since the flow is implemented as a "reusable flow", the corresponding nodes should also be installed - afterwards, Brave searches may be used anywhere in any workspace of your Node-RED server without having to copy the node which implements this function (this simplifies any updates)

Usage

The Brave flow expects a single parameter:

  • msg.payload - initially contains the string to search for. Later on, it will be replaced either by an error message or the parsed search results

If successfull (success is indicated by msg.status === 200), msg.payload will return an array with up to 18 search results. Each result is an object with the following properties:

  • Date - an optional date indicating when the found document was modifed
  • URL - the URL of the found document
  • Title - the title of the found document
  • Description - a short description of the found document

Nota bene: HTML entities (such as  ) will not be resolved

If msg.status has a different value than 200 or 204, msg.payload will contain an error message describing the error that occurred

Example

File Brave-Example.json contains a simple example: just import its contents into your Node-RED flow editor and configure the injection node with the desired search text.

Brave Example Screenshot

Shortly after pressing the injection button, the debug output should show up to 18 properly parsed search results.

License

MIT License

node-red-flow-brave's People

Contributors

rozek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.