News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: wget questions  (Read 399 times)

MysticLord

  • Full Member
  • ***
  • Posts: 113
    • View Profile
wget questions
« on: December 30, 2020, 02:22:14 pm »
I'm trying to make a local copy of the FFHacktics wiki so I can stitch together the tidbits of commented disassembly they have into something I can feed an assembler.

https://ffhacktics.com/wiki/SCUS_942.21
Here's what they have on one of the game files.

If I try to download this file:
https://ffhacktics.com/wiki/Add_Unit_to_Party/Store_Unit%27s_Party_Data

It saves it as
Add_Unit_to_Party

How can I make wget save it as the full URL (minus https://) with which wget was invoked, plus a *.html at the end, as such?

ffhacktics.com/wiki/Add_Unit_to_Party/Store_Unit%27s_Party_Data.html

assassin

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • My Barren Webpage
Re: wget questions
« Reply #1 on: December 30, 2020, 11:26:29 pm »
"wget --help" is your friend:

Quote
HTTP options:
       --http-user=USER        set http user to USER.
       --http-password=PASS    set http password to PASS.
       --no-cache              disallow server-cached data.
  -E,  --html-extension        save HTML documents with `.html' extension.

no idea why it's leaving off the filename for you, because Wget 1.11.4 (for Windows) does it just fine for me.

MysticLord

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Re: wget questions
« Reply #2 on: December 31, 2020, 03:40:49 am »
"wget --help" is your friend:

no idea why it's leaving off the filename for you, because Wget 1.11.4 (for Windows) does it just fine for me.

I think it's an issue with UTF-8 encoded URLs/filenames, which can have forbidden characters like '/' in them. I'm using Cygwin btw.

I'll just write a python wrapper, no big deal. Thanks though.