Recent Releases of url-title.sh

url-title.sh - Get title of a URL from its HTML

Get title of a URL from its HTML.


```bash $ node index.js urls.txt -o titles.md

Generated URL titles saved to titles.md

$ export DEVTOOLSPATH="/path/to/chrome-linux/chrome" $ export DEVTOOLSDATA_DIR="/path/to/chrome-linux/data-dir" $ node index.js urls.txt -o titles.md --unique

Generated URL titles saved to titles.md, with unique URLs

$ node index.js urls.txt -o titles.md --unique --sort

Generated URL titles saved to titles.md, with unique and sorted URLs

```



Usage

```bash $ script-url-title [options]

Options:

Input file with URLs.

-o, --output Write output to file.

-u, --unique Make URLs unique.

-s, --sort Sort URLs.

-t, --throttle Throttle requests.

-h, --help Show this help message.

Environment Variables:

$DEVTOOLS_PATH Path to Chrome DevTools.

$DEVTOOLSDATADIR Path to Chrome DevTools data directory.

```



References




ORG DOI

- JavaScript
Published by wolfram77 over 2 years ago

url-title.sh - Get title of a URL from its HTML

Get title of a URL from its HTML.


```bash $ node index.js urls.txt -o titles.md

Generated URL titles saved to titles.md

$ export DEVTOOLSPATH="/path/to/chrome-linux/chrome" $ export DEVTOOLSDATA_DIR="/path/to/chrome-linux/data-dir" $ node index.js urls.txt -o titles.md --unique

Generated URL titles saved to titles.md, with unique URLs

$ node index.js urls.txt -o titles.md --unique --sort

Generated URL titles saved to titles.md, with unique and sorted URLs

```



References




ORG

- JavaScript
Published by wolfram77 over 2 years ago