I am currently working a program that allows you to fetch HTML data from a file/raw HTML document input, like this:
curl https://gohugo.io/ | soup '.title.text'
I have got the program to work as intended on its own, but now I am getting stuck at supporting the pipeline. Does anyone here have any advice or tips for implementing it?All helps are appreciated!
import sys
print(sys.stdin.read())