Re: looking for a piece of software that will take an url (say to a blog post) and email me the contents
Dan Hitt wrote:
> Does anybody know of a piece of software that you can give an URL to,
> and it will then fetch the url and email the contents to you?
wget will get you the raw html / whatever files, then maybe tar and mail
them.
quick and dirty script I threw together as a proof of concept (note it
probably won't work, due to extra breaks being introduced for Usenet)
| #!/bin/bash
|
| cd /tmp || exit 1
|
|
| wget -q --random-wait -4 -P "$1" \
| -U
| "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0" \
| [... more options here if you like ...] $1
|
| tar -czvf "$1.tgz" ./"$1"
|
| echo "got it" | mutt -s "grabbed site $1" -a "$1.tgz" -- you@domain.com
--
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
Reply to: