
On 2012-06-17 22:45, Mark Trickett wrote:
Hello All,
As are others, I am a Linux Journal subscriber, and they have discontinued the print edition, providing a PDF from the web instead. I get a monthly email, with a link, and clicking on that brings up a page in FireFox, and an auto start download with the FireFox download manager. Sometimes it "completes" short of the whole file, useless, but usually I can get with multiple tries. This month, no such luck.
I have tried copying and pasting the link into wget, but without success, there is a stub document, and wget then exits instead of listening for the following file. I have looked at the wget man page, and there is a provision for getting, and saving, session cookies, as well as ways to do login credentials, but I am not certain of quite what is required. I do have login credentials available, but appear not needed. The URL is, without all the final string as I am required to not pass that on, but of 6 alphanumeric characters, a hyphen, then fourteen characters, another hyphen, then ten characters. There is a shortened version follows, which should fail in a browser, but provide the first portion for reference.
http://linuxjournalservices.com/portal/wts/cgmciy-
I am wondering whether I need recursion, or some other option to get wget to wait for the download to start on the opened connection.
Hi Mark, Firstly, I suggest you try this: http://www.linuxjournal.com/digital. Alternatively, in the current LJ issue (ironically) one of the letters suggests that a 'wget' of the URL in the email works fine as long as you enclose the URL in double-quotes: Bruno wrote:
Here is how I do it:
* I click on the link received via e-mail.
* In the browser that opens, I copy the entire address bar (via Ctrl-A, Ctrl-C). The URL is something like "http://download.linuxjournal.com/pdf/get-doc.php?code=...".
* I then type wget and paste the URL, with one very important precaution though. The URL must be enclosed in double quotes, as the parameters are separated by an ampersand (&), which has a special meaning under UNIX/Linux.
It works like a charm! So, if you have the chance to pass that information on to Bob, that would be great!
Alternatively: Jordi Clariana wrote:
I was reading the April 2012 issue, and > regarding the letter from Bob Johnson > titled "Linux Journal Download with > wget?", I think I may have a solution: > the cliget extension for Firefox > (https://addons.mozilla.org/en-us/ > firefox/addon/cliget).
Hope this helps. -- Regards, Matthew Cengia