2.4.1 • Published 3 years ago

slector v2.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Slector Banner

Slector

Preparing Queries for Web-Scraping

This package is used to create 'Slectors' (otherwise known as DOM Queries) which you can then use in your Web Scraping | Machine Learning projects.

Quickstart Guide

Initialise a Node Project.

Install Slector:

npm install slector -D

Import Slector:

import Slector from "slector";

Create a Slector options object:

const options = {showExtConsole: true, collectionTypes: ["EndPoint", "Method Description"], startUrl: "https://www.coingecko.com/en/api/documentation", slectors: previousSlectors, exportTextContent: true,}

Slector Options Available

PropertyDefinitionRequired?
collectionTypesstring[]: The available Slector names/categories/groups.
startUrlstring: The first url to navigate to (after extension setup)
slectorsslectors[]: Previously exported slector data to load on setup.
exportTextContentboolean: Will collect text content of all highlighted DOM elements.
showExtConsoleboolean: Will open background-script inspector on startup.

Create a new Slector Instance:

const slector = new Slector(options);

Run Slector and export data:

const res = await slector.slect();

Open the browser, make your selections, and when you click 'DONE' in the extension - return all your Slector Instance JSON data.

2.4.1

3 years ago

2.3.0

3 years ago

2.0.3

3 years ago

2.2.0

3 years ago

2.4.0

3 years ago

2.0.4

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago