topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday August 11, 2020, 10:40 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,279
    • View Profile
    • Donate to Member
sfd: Download a web page as one single file
« on: June 22, 2020, 01: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.
« Last Edit: June 22, 2020, 04:58 PM by Tuxman »

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 10,584
    • View Profile
    • Donate to Member
Re: sfd: Download a web page as one single file
« Reply #1 on: June 22, 2020, 02:42 PM »
That's really cool!

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,279
    • View Profile
    • Donate to Member
Re: sfd: Download a web page as one single file
« Reply #2 on: June 22, 2020, 02: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.

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 10,584
    • View Profile
    • Donate to Member
Re: sfd: Download a web page as one single file
« Reply #3 on: June 22, 2020, 04: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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,279
    • View Profile
    • Donate to Member
Re: sfd: Download a web page as one single file
« Reply #4 on: June 22, 2020, 04:57 PM »
Pfff. Why do I even attach binaries?
I'll clarify above.