Skip to content

lhy0718/click_selection

Repository files navigation

Click Selector & Crawler

Installation

Install after enabling developer mode in chrome://extensions.

Features

  1. A switch to turn crawling on and off
  2. Switch to turn group selection (sibling selection) on and off
  3. Save the crawled data of current page to chrome local storage
  4. Delete the crawled data and cache of the current page
  5. Download a list of all pages crawled so far to computer
  6. Delete all crawled list so far from chrome local storage
  7. Delete all crawl cache so far from chrome local storage

Keyboard Shortcuts

Toggle crawling

  • Windows, Linux: Ctrl+Shift+O
  • MacOS: Command+Shift+O

Toggle group selection (Sibling selection)

  • Windows, Linux: Ctrl+Shift+E
  • MacOS: Command+Shift+E

Save crawled elements of current page to chrome local storage

  • Windows, Linux: Ctrl+Shift+S
  • MacOS: Command+Shift+S

Debugging

  • Whenever a DOM element on a page is selected, the page's cache is printed to the console.
  • When you click the "Click Selector & Crawler" title in the extension popup, all data stored in Chrome's local storage is displayed in the popup console.

An Example of the Save File Format

{
  "https://example.com": {
    "p~~0": {
      "nth-child": 0,
      "selector": "p",
      "text": "This is an example."
    },
    "p~~1": {
      "nth-child": 1,
      "selector": "p",
      "text": "This is an example 2."
    }
  },
  "https://example.net": {
    "h1~~0": {
      "nth-child": 0,
      "selector": "h1",
      "text": "This is an example text."
    }
  }
}

Screenshot

Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published