Results 1 to 6 of 6

Thread: Help with wget

  1. #1
    Join Date
    Jun 2014
    Beans
    3

    Help with wget

    I'm sorry if this is not the right place to make this thread, I have gotten tired of trying to search for this and not even knowing where to start, plus I figured I would go to a forum revolving around linux seeing as this is a linux command. Anyway, I recently started on this endeavor in Windows to create a batch file that will go to certain webpages and download files that I use on a daily basis at work such as Combofix, tdsskiller, ect... I ran into an issue using Windows command line while downloading tdsskiller where it would "download" but not have actually grabbed the .exe and I talked with my boss and he said to install Cygwin with the wget command installed. After a little while I had gotten the hang of it and had several programs downloading through cmd using wget. My issue is there are several programs that I want to update on a regular basis but can't because the names change with each update, programs like adwcleaner which is now named adwcleaner_3.312.exe. Now if you go to the website ( https://toolslib.net/downloads/finish/1/ ) after a few seconds it will have a pop up menu that you can save said program. I want to know if it possible to tell the command wait for the popup and download the file, and also ignore the name. I've been looking in to this for about a week and the closest thing I can find is
    Code:
    wget -r -l1 -H -t1 -nd -N -np -A.mp3 -erobots=off -i ~/mp3blogs.txt
    with the command -A.mp3 looking for .mp3 files in various levels of the website. Any suggestions?
    Last edited by papibe; June 25th, 2014 at 06:17 PM. Reason: font change and code tags

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Help with wget

    Moved to Other OS/Distro Support.

  3. #3
    Join Date
    Jun 2014
    Beans
    3

    Re: Help with wget

    Let me add some more information just in case people do not understand. I'm using wget to download .exe files through cygwin attached to command prompt. The code I'm using for example is. Works like a charm, but if I were to try downloading adwcleaner from their website I would like to use, vs . I don't know how or if it is possible to make wget ignore the name, if I use the later, then this batch file I created would have to be updated after each release. Which then I would just go download it instead of using wget for that file.

  4. #4
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    3,283

    Re: Help with wget

    wget is a great little downloader. It's not a web page parser.

    From your description, you seem to need to parse the web page or the javascript...whatever is generating the link you are looking for. You can do that parsing using shell script, or perl, or Python, or a dozen other languages. Once you have the link, then you can download it. If your parsing script is in shell code, then wget would be appropriate.

  5. #5
    Join Date
    Jan 2010
    Location
    Hyperborea
    Beans
    1,930
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Help with wget

    Last edited by coldraven; July 2nd, 2014 at 12:17 PM.

  6. #6
    Join Date
    Jun 2014
    Beans
    3

    Re: Help with wget

    Thank you guys so much. I'll begin looking into your suggestions tonight.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •