DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: sfd: Download a web page as one single file  (Read 20,995 times)

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
sfd: Download a web page as one single file
« on: June 22, 2020, 06:05 PM »
sfd -url https://some.website/foo.html -target .

--> You'll have a single .htm file that includes all CSS, JS and image resources baked right into the source code. Enjoy or whatever.

Sources: https://code.rosaelefanten.org/sfd
Binaries: Attached.
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.
« Last Edit: June 22, 2020, 09:58 PM by Tuxman »

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: sfd: Download a web page as one single file
« Reply #1 on: June 22, 2020, 07:42 PM »
That's really cool!

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: sfd: Download a web page as one single file
« Reply #2 on: June 22, 2020, 07:45 PM »
Probably not, unless you want to hack the source code. Like Pascal/Delphi, Go usually produces static binaries.
edit: Just imagine that you had not edited your post.
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: sfd: Download a web page as one single file
« Reply #3 on: June 22, 2020, 09:51 PM »
Probably not, unless you want to hack the source code. Like Pascal/Delphi, Go usually produces static binaries.
edit: Just imagine that you had not edited your post.

LOL.  I figured the answer out on my own looking in your rar file.  I was only looking at the repo at the time.

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: sfd: Download a web page as one single file
« Reply #4 on: June 22, 2020, 09:57 PM »
Pfff. Why do I even attach binaries?
I'll clarify above.
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

Original address: https://www.donationcoder.com/forum/index.php?topic=50051.0