Last active
June 10, 2023 13:39
-
-
Save Akkiesoft/c4889b38d7cabd3dd3277887ef12e141 to your computer and use it in GitHub Desktop.
rpilocatorみたいなことを自前でやるときのスクレイピングすべきデータ(スイッチサイエンス編)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Data scraping for Switch Science(JP) | |
// SKU | |
document.getElementsByClassName('product-details__block')[6].innerText.split(': ')[1]; | |
// Stock count | |
document.getElementsByClassName('product-details__block')[8].innerText.split(': ')[1]; | |
// Price(JPY) | |
document.getElementsByClassName('money')[0].innerText.substr(1); | |
/* Item list | |
Pi Zero 2W: https://ssci.to/7600 | |
Pi 3A+: https://ssci.to/4110 | |
Pi 4B 1GB: https://ssci.to/5682 | |
Pi 4B 2GB: https://ssci.to/5681 | |
Pi 4B 4GB: https://ssci.to/5680 | |
Pi 4B 8GB: https://ssci.to/6370 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment