Pico-8 Carts - Bash Downloader
Download & automatically rename Pico-8 carts from the Lexaloffle BBS threads
How to use the script
Download the .sh file in this repository and save it in your $PATH, you can also use it locally and call it adding a
Before launching the script, edit the following line to change the directory where you want to download the carts:
The .sh file has to be executable too:
chmod u+x picodownload.sh
The script supports
picodownload.sh http://www.lexaloffle.com/bbs/?tid=28957(the first cart will be downloaded)
Index pages: like the BBS
http://www.lexaloffle.com/bbs/?cat=7or the featured section
http://www.lexaloffle.com/bbs/?cat=7&orderby=rating. All the carts listed in the section will be downloaded (around 50 per page if i'm not wrong).
Files: if you want to download all the carts on your favourite page, just save the html file (view source, copy paste in a file). Note: this page is only reachable if you're logged.
If you want to download anything besides a single cart in a thread, you need to use the options:
- -p or --page to download all the carts in an index, example:
picodownload.sh -p http://www.lexaloffle.com/bbs/?cat=7
- -f or --file to download all the carts from your favourite page. Note: don't use spaces in your filename, i must have forgot some quotes in the script, it bugs out at the moment. Example:
picodownload.sh -f ./lexalol.html
If you download the cart from the following url http://www.lexaloffle.com/bbs/?tid=29017, the cart will be saved as:
The structure of the file is the following:
BBSI_ID is especially useful if you want to quickly find the original thread where the cart was downloaded from.
You can customize the filename by editing this line in the script: