Coder Social home page Coder Social logo

entitle's Introduction

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.

entitle's People

Contributors

idadzie avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.