As an avid fan of "Animal Crossing: New Horizon" I find myself on Turnip Exchange pretty much daily checking the current Turnip Prices.
Initially I would manually grab the Turnip Prices, sort them using CyberChef, manually generate a Slack message and share it in the "Animal Crossing" Slack Channel at work.
As an Automation Engineer though, I knew I could do so much better, so I created the following Selenium based script that manipulates the UI and grabs the data I need.
- This is the ALPHA version of the script. More details will be added.
- You will need Google Chrome
v81+
.
-
mvn clean install
-
Run the
main()
function. -
Example output:
Number of Islands: 111 **Turnip.Exchange** prices over 600 :bells: ------------------------------------------- - :ac-turnip: price: 649 :bells: - :ac-turnip: price: 620 :bells: ------------------------------------------- Time: 2020-07-22 16:18:35.374
You can customize the Turnip Price threshold and Slack Emojis that are used.
-
Open
src/main/java/GenerateTurnipExchangeTopPrices.java
. -
Update the following variables:
MIN_TURNIP_PRICE
TURNIP_SLACK_EMOJI_ALIAS
BELLS_SLACK_EMOJI_ALIAS
-
Retrieve additional details:
- Link to the Island queue
- Island details
- Current queue