1416 links
  • Animal
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
2 results tagged wget x
  • How do I provide a username and password to wget? - Ask Ubuntu

    Pour mémoire :

    wget --user "$USER" --password "$PASSWORD" "$URL"

    Et pour éviter d'insérer le mot de passe en clair dans le terminal :

    wget --user "$USER" --ask-password "$URL"
    Fri Apr 10 16:09:05 2020 - permalink -
    QRCode
    - https://askubuntu.com/questions/29079/how-do-i-provide-a-username-and-password-to-wget/29096#29096
    Password User Wget
  • bash wget - check if file exists at url before downloading · GitHub

    Pour tester si une page existe sans la télécharger :

    #!/bin/bash
    
    # Renvoie "true" si la page passée en argument existe.
    # @param $1 : l'URL de la page dont on veut tester l'existence.
    # @return true si la page existe, false sinon.
    is_URL_real()
    {
        local page_exists
        page_exists="false"
    
        if [[ `wget --server-response --spider "$1"  2>&1 | grep 'HTTP/1.1 200 OK'` ]]; then
            page_exists="true"
        fi
    
        echo "$page_exists"
    }
    
    is_URL_real "$1"

    Ce qui donne à l'exécution :

    ./test_URL.sh "https://www.qwant.com"
    true
    Wed Jun 27 17:52:24 2018 * - permalink -
    QRCode
    - https://gist.github.com/hrwgc/7455343
    Bash existence Linux page test wget
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation