Closed lkz0ne closed 2 years ago
Please, some clue?
Unfortunately, maintainer of github.com/ericchiang/css
broke its public API and this repository doesn't have a go.mod
file which could pin dependencies versions, so here we are. ~It seems you need to rename css.Compile
to css.Parse
on the line of code mentioned in the error, which is the easiest way~. Also, you can fix it by adding go.mod
to avoid future issues:
git clone https://github.com/tomnomnom/hacks.git \
&& cd hacks \
&& go mod init hacks \
&& go mod tidy \
&& go get github.com/ericchiang/css@f08e94f04ef6 \
&& echo 'https://google.com' | go run html-tool/main.go tags title # it should output Google
God bless you man. I saw myself looking for a alternative and i found it as an example ./xidel --silent --extract "//@src | //@href" https://google.com considering that the package is broken, it could be utile.
By the way, I get html-tool fixed by rename css.Compile to css.Parse in main.go as you prescribe. Thanks a lot.
I am trying to use the html-tool I am getting the following when running go get url
So I did
But I don't know how to execute the html-tool . Any hints?
Further, I tried
What am I doing wrong?