https://github.com/pdulvp/extract-data
Ease your daily-uses copy/paste. (as JSON, XLS or with textual format)
https://github.com/pdulvp/extract-data
chrome-extension clipboard edge-extension firefox-extension json webextension
Last synced: 3 months ago
JSON representation
Ease your daily-uses copy/paste. (as JSON, XLS or with textual format)
- Host: GitHub
- URL: https://github.com/pdulvp/extract-data
- Owner: pdulvp
- License: other
- Created: 2020-05-09T20:27:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T14:46:05.000Z (almost 2 years ago)
- Last Synced: 2024-09-27T01:49:17.579Z (7 months ago)
- Topics: chrome-extension, clipboard, edge-extension, firefox-extension, json, webextension
- Language: JavaScript
- Homepage:
- Size: 1.57 MB
- Stars: 22
- Watchers: 1
- Forks: 6
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://addons.mozilla.org/fr/firefox/addon/extract-data)
[](https://chrome.google.com/webstore/detail/extract-data/dgojclpdbgnpjclhimcldkapkgnmjbcb)
[](https://microsoftedge.microsoft.com/addons/detail/kepgpcbkfghmiilchbdgkmagoiimbgep)
[](https://addons.opera.com/fr/extensions/details/extract-data/)
This extension allows to extract data on opened tabs and copy it to clipboard. (as JSON, XLS or with textual format)
By right clicking on an element and defining an extraction rule, each time you will visit the site again, the data will be automatically extracted and available for a copy to the clipboard.
## How to use it
On a interesting element on a page, just `Right-Click > Create a new rule`

**That's all.** If you look at the toolbar, the element is available by clicking on the addon icon.

Just click on one of the format appearing and it will be copied to the clipboard.
:thumbsup: If you visit again the site, it will be directly available here again.
You can add additional element:

It will be added to the toolbar:

:thumbsup: If the value within the site change, the value will be dynamically changed here too
## Fine settings
You can Edit created rules.
Just click on `Edit rules` in the toolbar or in the contextual menu. It opens a new dialog allowing finer tune.
### From:

### To:

You can do basic stuff:
- Edit rule and item names (F2 or Double Click)
- Delete rules and items (Delete key)You can do better stuff:
- Use a **Regular expression for Site**
- Edit Expression (even if contextual menu `Change Item #XX` allows easier change)
- Validate if your rules are working properly (see dedicated section)
## Clipboard
When you click on the dedicated button, it will copy the result to the clipboard.
### JSON format
If you click on JSON button

### XLS format
If you click on XLS button, you can paste it to Excel with this format

### RAW/Textual format
If you click on RAW button

## Validate rules
### Highlight elements
Anywhere on a page, just `Right-click > Highlight` to identify which elements are already marked by a given rule.


### Contextual indicators (Firefox only)
On a page, invalid items are displaying a warning aside.

### Expression
#### XPath
You can use expression to retrieve one or many elements.
- `//h1`: returns all h1 elements.
- `/element/@name`: returns the attribute `name` of the element.
- see [XPath](https://developer.mozilla.org/fr/docs/Web/XPath) for more samples
#### CSS Selectors
You can use CSS Selectors rather than a complicated XPath expression.
- `h1`: returns all h1 elements.
- `#id`: returns element with the given `id` attribute.
- see [CSS Selectors](https://developer.mozilla.org/fr/docs/Web/CSS/CSS_Selectors) for more samples
#### Predefined expressions
You can also use one of the predefined expressions below.
- `document.location` : https://developer.mozilla.org:8080/en-US/search?q=URL&r=10#search-results-close-container
- `document.location.protocol` : https:
- `document.location.host` : developer.mozilla.org:8080
- `document.location.hostname` : developer.mozilla.org
- `document.location.port` : 8080
- `document.location.pathname` : /en-US/search
- `document.location.pathname.` : 0: en-US, 1: search
- `document.location.origin` : https://developer.mozilla.org:8080
- `document.location.search` : ?q=URL&r=10
- `document.location.search.` : q: URL, r: 10
- `document.location.hash` : #search-results-close-container### Validation indicators
Especially when a rule is covered by a `Regular Expression`, selected items may not work on some matched pages.
The `Green button` will list all opened tabs that are matched by the Site field.

By clicking on one of them, it will highlight elements on the page and indicates which items are not matched.

## Advanced items editor
Items can be edited within an advanced editor:
Just edit your items using JSON format, switch back, items are created.
