Skip to content

idadzie/entitle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

entitle

entitle is a command-line program to get the title of a web page using its URL.

🀫 It is seriously over-engineered.

🧳 Dependencies

It requires xidel to run. 😍

You should also ensure you have make if you intend to use that installation option.

πŸ’Ύ Installation

Using make (Recommended)

To install, clone this repository and run make installfrom the source tree.

# Clone this repository.
git clone https://github.com/idadzie/entitle.git

# Change directory to the source tree.
cd entitle

# Run make.
[sudo] make install

By default, entitle is installed under /usr/local. You can install it to a different location by specifying a PREFIX when calling make.

make install PREFIX=$HOME/.local

Manually downloading the executable

To install it right away for all UNIX users (Linux, macOS, etc.), type:

sudo curl -L https://raw.githubusercontent.com/idadzie/entitle/main/bin/entitle -o /usr/local/bin/entitle
sudo chmod a+rx /usr/local/bin/entitle

If you do not have curl, you can alternatively use a recent wget:

sudo wget https://raw.githubusercontent.com/idadzie/entitle/main/bin/entitle -O /usr/local/bin/entitle
sudo chmod a+rx /usr/local/bin/entitle

πŸš€ How to use

Get web page title via URL.
Usage: /usr/local/bin/entitle [--(no-)squared] [-h|--help] <url>
	<url>: Web page URL
	--squared, --no-squared: Escape square brackets (off by default)
	-h, --help: Prints help
# For the exact title.
entitle https://www.youtube.com/watch\?v\=dQw4w9WgXcQ

# For markdown friendly output.
# Really it's just escaping the square brackets in some titles.
entitle --squared https://www.youtube.com/watch\?v\=dQw4w9WgXcQ

πŸ’– Like this project ?

Leave a ⭐ If you think this project is cool.

About

πŸ”— Get web page title via URL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published