[Tool] pydesteamify.py -- mass renaming script for renaming Steam Workshop IDs

Started by shakeyourbunny, November 08, 2020, 04:58:23 AM

Previous topic - Next topic

shakeyourbunny

pydesteamify.py

This is very simple Python script to rename Steam Workshop mod IDs to the proper name of the mod.
Download: https://gist.github.com/shakeyourbunny/d67f542a1c52caa10df6d25362760791

It scans a given directory for valid mods (checks for a About/About.xml) and renames the directory accordingly to the <name> tag in the XML. In addition, it suffixes the directory with "-(workshopid)", if a PublishedFileId.txt is present.

Requirements
Since this is a script, you will need Python 3 installed in your system path, I think 3.6+.

Usage
Run "python pydesteamify.py" or "python3 pydesteamify.py" in the command line or double-click it in Windows Explorer, if you have Python installed and .py associated with Python. It is self-contained.

License
Standard BSD license. You may use my code to build upon it, but credit me and link back to the original GIST.

Since this is a one-off script, you are encouraged to build upon it, but provide proper credit for me. Thank you.

original idea
Xcallono, see https://ludeon.com/forums/index.php?topic=52717.0