New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

highlights-scraper

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highlights-scraper - npm Package Compare versions

Comparing version 0.0.2 to 0.0.4

cli.js

7

example/scrape.js
const {scrapeHighlights} = require("../index.js");
// node example/scrape.js
const URL = "https://www.goodreads.com/notes/69252350-max-heinritz";
scrapeHighlights(URL).then(highlights => console.log(highlights));
const url = "https://www.goodreads.com/notes/69252350-max-heinritz";
scrapeHighlights(url).then(
highlights => console.log(highlights),
error => console.error(error)
);

@@ -49,4 +49,2 @@ const {Builder, By} = require('selenium-webdriver');

return books;
} catch(e) {
console.error(e);
} finally {

@@ -53,0 +51,0 @@ await driver.quit();

{
"name": "highlights-scraper",
"version": "0.0.2",
"version": "0.0.4",
"description": "Scrapes public Kindle highlights on Goodreads.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"scrape": "node cli.js"
},
"repository": {
"type": "git",
"url": "https://github.com/maxh/highlights-scraper"
},
"author": "Max Heinritz",

@@ -10,0 +14,0 @@ "license": "ISC",

@@ -6,17 +6,25 @@ # Highlights Scraper

## Usage
Find your Kindle highlights URL by logging into Goodreads and clicking
```js
const {scrapeHighlights} = require("highlights-scraper");
const url = "https://www.goodreads.com/notes/69252350-max-heinritz";
scrapeHighlights(url).then(
highlights => console.log(highlights),
error => console.error(error)
);
```
- Find your Kindle highlights URL by logging into Goodreads and clicking
"Kindle Notes & Highlights" under "YOUR READING ACTIVITY" in the left panel.
Load the URL in an incognito window to ensure the highlights you expect
- Load the URL in an incognito window to ensure the highlights you expect
to be public actually are.
- You can toggle your individual highlights to be public or not in the web UI for
a given book.
```js
const {scrapeHighlights} = require("highlights-scraper");
### Command-line interface
const URL = "https://www.goodreads.com/notes/69252350-max-heinritz";
scrapeHighlights(URL).then(highlights => console.log(highlights));
```
npm run scrape -- https://www.goodreads.com/notes/69252350-max-heinritz
```
(You can toggle your individual highlights to be public or not in the web UI for
a given book.)
## Result format

@@ -23,0 +31,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc