Author |
Message |
- Joined: 25 Dec 2005
- Posts: 607
- Location: São Paulo - Brazil
|
Wget, smspower and sid querystring variable
Posted: Sun Jan 17, 2016 3:00 am
|
Hi all,
I am trying to download the entire VGM page with wget.
Thing is that seemingly it can't accept the smspower cookies so it appends "?sid=11928ea9d0b" to every link and file being downloaded. (the session variable which is stored in cookie when normal browsing).
I tried changing user agent to Chrome, and even adding the cookie information but it seems that each wget execution gets a new sid which nulls the cookie information from previous request invocation.
|
|
|
- Site Admin
- Joined: 19 Oct 1999
- Posts: 14687
- Location: London
|
Posted: Sun Jan 17, 2016 8:36 am
|
The sid is to enable a session to be cookied on the next link, but maybe it isn't working with wget. Is it a problem? Just strip them from the files.
|
|
|
- Joined: 25 Dec 2005
- Posts: 607
- Location: São Paulo - Brazil
|
Zip
Posted: Sun Jan 17, 2016 3:46 pm
|
When you try to download the zip files you must specify the extension to wget. The sid querystring is appended to the extension and wget ignores the file since it isn't zip.
|
|
|
- Joined: 25 Dec 2005
- Posts: 607
- Location: São Paulo - Brazil
|
Posted: Sun Jan 17, 2016 10:35 pm
|
Well, I did it.
I saved the html source from browser, stripped all sids, and used the saved file as input to wget, accepting zip files.
It's downloading the entire assets now.
|
|
|
- Joined: 16 May 2002
- Posts: 1355
- Location: italy
|
Posted: Mon Jan 18, 2016 1:13 am
|
I would have just used the DownThemAll extension, but maybe that's not available in your browser of choice.
|
|
|
- Joined: 25 Dec 2005
- Posts: 607
- Location: São Paulo - Brazil
|
Posted: Mon Jan 18, 2016 1:15 am
|
My fingers are itching for a LoTR comment here :) Anyways, thx.
|
|
|