Follow

curl -s -L https://t\.co/oQxLRQ2KhP | grep -o -P '(?<=<meta property="og:description" content="“).*(?=”">)' # GET the tweet, the full tweet and nothing but the tweet.
This uses Perl regex lookahead/behind regex black magic.

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!