GithubHelp home page GithubHelp logo

macthings / steam-workshop-downloader Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 11 KB

Download Steam Workshop Files without Steam Account from Terminal

Shell 100.00%
downloader mods mods-downloader steam-workshop

steam-workshop-downloader's People

Contributors

macthings avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

steam-workshop-downloader's Issues

Not Working on 2844104617

Can't download this one: 2844104617.
I made changes with the scripts:

#!/bin/bash
#

if [[ "$1" = "" ]]; then
  echo -e "\nUsage:\n"
  echo -e "./steam-workshop-downloader.sh WORKSHOP_ID\n"
  exit
fi

### Fit to your needs ###
steam_dir="$HOME/.steam/steamapps/workshop/content" 
download_dir="$HOME/Downloads"
###

workshop_id="$1"
html_source=$( curl -silent "https://steamcommunity.com/sharedfiles/filedetails/?id=$workshop_id" )
app_id=$( echo "$html_source" | grep "data-appid" | sed -e 's/.*data-appid="//g' -e 's/\">//g' -e 's/\r//g' )
title=$( echo "$html_source" | grep "workshopItemTitle" | sed -e 's/.*">//g' -e 's/<\/.*//g' )

echo -e "Connecting steam ...\n"

if steamcmd +login anonymous +workshop_download_item $app_id $workshop_id +quit > /dev/null; then
  echo -e "Done\n"
else
  echo -e "\nAn error has occured. Please check Workshop ID and try again.\n"
  exit
fi

echo -e "Zipping content ...\n"
echo "$title"

mkdir -p "$steam_dir/$app_id/$workshop_id"
cd "$steam_dir/$app_id"

zip -rq "$HOME/Downloads/$title.zip" "$workshop_id"

# rm -r "$steam_dir/$app_id/$workshop_id"

echo -e "\nFile created:\n$HOME/Downloads/$title.zip\n"

I tried you sample workshop, and it works. Also, I don't have Steam installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.