[Surfraw-devel] How to use surfraw with curl
Kyle Isom
kyle at imap.cc
Thu Aug 11 00:47:36 UTC 2016
Hello David,
I did some tests, and it looks like the args aren't being passed. I
created a curl wrapper
printf '#!/bin/sh\n\ncurl -vL "$@"' | tee $HOME/bin/vcurl
chmod +x $_
sr -browser vcurl -s duckduckgo trump
and I was able to get the actual HTML.
Cheers,
Kyle
On 16/08/09 at 11:21, David Niklas wrote:
> Hello,
> I entered this (as a test):
> % sr -browser="curl -L " -s duckduckgo trump
>
> And got this:
> <html>
> <head><title>301 Moved Permanently</title></head>
> <body bgcolor="white">
> <center><h1>301 Moved Permanently</h1></center>
> <hr><center>nginx</center>
> </body>
> </html>
>
> Now, I expected to get results as an html page
> to stdout.
> What do I do?
> I tried increasing curl verbosity curl -vLD -
> to no avail.
>
> Thanks,
> David
>
> _______________________________________________
> Surfraw-devel mailing list
> Surfraw-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/surfraw-devel
--
Cheers,
Kyle
kyle at imap.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/surfraw-devel/attachments/20160810/e9feecf4/attachment.sig>
More information about the Surfraw-devel
mailing list