macos – Utilizing curl to obtain picture, and duplicate to the PNG to the clipboard

on

|

views

and

comments


I am utilizing curl and grep to get the URL of a picture, after that I might prefer to obtain the picture itself, and duplicate it to the clipboard immediately, somewhat than saving it to the disk briefly earlier than. I am puzzled that the output would not appear to work. It solely provides me “textual content” somewhat than the picture itself. This is the command I’ve thus far:

curl -s https://www.tradingview.com/x/4WuY06rl/ | grep -oE "src="https://apple.stackexchange.com/questions/454737/[^"]+'" | sed -E "s/src="([^"]+)'/1/" | xargs curl -s | pbcopy

If there’s a better resolution to this, please let me know. The command is constructed round the concept that the web site right here has solely ONE img tag.

Share this
Tags

Must-read

New Part of Torc–Edge Case Collaboration Targets Manufacturing-Prepared Security Case

Unbiased security assessments by Edge Case mark a pivotal step in Torc’s journey towards commercializing Degree 4 autonomous trucking Blacksburg, VA — August 19,...

Self-Driving Truck Firm Strikes Into Ann Arbor

Exterior, friends mingled within the heat August solar whereas children, dad and mom, and even a number of four-legged mates loved the morning....

Tesla shareholders sue Elon Musk for allegedly hyping up faltering Robotaxi | Tesla

Tesla shareholders sued Elon Musk and the electrical automobile maker for allegedly concealing the numerous threat posed by firm’s self-driving automobiles.The proposed class-action...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here