Script to scan video of user scrolling through their AC:NH Nook Shop catalog or DIY recipes list.
This is the source code for the Twitter bot @CatalogScanner, which is an automated version of this.
This script requires Python 3 and Tesseract-OCR to work.
You can then install the required libraries using pip and requirements.txt:
cd CatalogScanner
python3 -m venv .env
.env/Scripts/activate
pip install -r requirements.txt
Before using this script, you need to create a valid video file. There are two types of videos
- Open Nook Shopping (ATM or phone app)
- Select desired catalog and section
- Scroll to the bottom using the right analog stick (page scrolling)
- Hold down "Capture" button on left joycon to record the last 30s
- Open DIY recipes list (phone app)
- Select desired section
- Scroll to the bottom using the left analog stick (item scrolling)
- Hold down "Capture" button on left joycon to record the last 30s
- Go to Switch's Album gallery and select your video
- Press A and select "Trim"
- Cut the video to the start/end of the scrolling and save
- Export the video either through Twitter or with an SDcard
Once you have your video file, you can pass it as the first argument to the script:
python scanner.py catalog.mp4
By default, it will detect the video type (catalog or recipes), but you can force on with --mode
.
You can use --for_sale
to filter out items that are not purchasable,
and you can use --lang
to adjust the parsed language.
By default, the script prints out the name of all the items found in your catalog video.
The item name data comes from: