Vimms lair is starting to remove many roms that are being requested to be removed by Nintendo etc. soon many original roms, hacks, and translations will be lost forever. Can any of you help make archive torrents of roms from vimms lair and cdromance? They have hacks and translations that dont exist elsewhere and will probably be removed soon with ios emulation and retro handhelds bringing so much attention to roms and these sites

  • wuphysics87@lemmy.ml
    link
    fedilink
    English
    arrow-up
    29
    ·
    edit-2
    1 month ago

    A friend of mine and I put this together a few years ago. I hope yall find it helpful:

    #!/usr/bin/env bash
    
    download_roms(){
        for ((i=$1; i<=$2; i++)); do
            cd "$HOME/retroarch"
            curl  -G -L "https://download3.vimm.net/download/?mediaId=$i" -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0' -H 'Referer: https://vimm.net/' -O  -J
        done
    }
    
    choose_system(){
    printf "\n============================================"
    printf "\n NOTE: This Script has not been fully tested"
    printf "\n       It may not work as expected"
    printf "\n============================================\n"
    printf "Download roms for which systems?
        1. NES
        2. SNES
        3. GameBoy
        4. N64
        5. GameCube
        6. Sega Genesis
        7. Playstation1-2
        8. Playstation Portable
        0. All\n : "
    
    read -r system
        case $system in
            "1") download_roms 3      981    "NES";;
            "2") download_roms 983    1770   "SNES";;
            "3") download_roms 2955   5932   "GameBoy";;
            "4") download_roms 2465   2761   "N64";;
            "5") download_roms 7461   7634   "GameCube";;
            "6") download_roms 1771   2464   "Sega Genesis";;
            "7") download_roms 6071   9894   "Playstation1-2";;
            "9") download_roms 23991  23973  "Playstation Portabale";;
            "0") download_roms 1      100000 "All";;
        esac
    }
    
    mkdir -p "$HOME/retroarch"
    choose_system
    
    • Barzaria@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 month ago

      Thank you for the awesomeness that is the script. If I might ask a question: why is the user agent Windows 10 if this is a bash script? I’m genuinely curious and I don’t know why.I imagine this might be WSL. You did mention it was an old script so maybe it had something to do with that?

      • Norah - She/They@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        15
        ·
        1 month ago

        The “user-agent” part of the script is the same as a browser’s user agent. So it’s trying to emulate a common user so the site doesn’t know it’s a script, and there’s not a more common user than a Windows one, so it’s lying about it.

      • wuphysics87@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month ago

        That’s a very good question. It was a few years ago, but it’s running right now on my computer on Linux.