Skip to content

scupit/minecraft-mod-download-url-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Addon URL Extractor

This script extracts URLs from a markdown file, then outputs a file download URLs for each Modrinth or CurseForge Minecraft project it encounters (if it can). For now, project links are only pulled from Markdown files, but that can easily be expanded upon.

Motivation

I made this project because I wanted to automate downloading Minecraft addons for a specific version of the game, in a platform-independent way, from multiple web sources. Both Modrinth and CurseForge have their own GUI clients, but I don't want to rely on those for downloading and organizing Minecraft add-on content.

Setup

This project requires a Python interpreter to run.

  1. Download dependencies: pip install -r ./requirements.txt
  2. Run playwright install to install and set up playwright's headless browsers.
  3. Run main.py with a Minecraft version argument and a markdown file path to pull URLs from. See below for examples.

Running

Output to files:

# Takes links from long-list.md and outputs successfully resolved download URLs
# to ./1.19.2-output-success.txt, and any failures or items which need manual
# download to ./1.19.2-output-fail.txt
python src/main.py '1.19.2' example-files/long-list.md -o ./1.19.2-output

Or output to stdout and stderr:

# Takes links from long-list.md and outputs successfully resolved download URLs
# to stdout, and any failures or items which need manual review to stderr.
python src/main.py '1.19.2' example-files/long-list.md

About

Takes Modrinth/CurseForge URLs from a markdown file, and outputs URLs to download associated files for a specific game version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages