Skip to content

Instantly share code, notes, and snippets.

@Akkiesoft
Last active June 10, 2023 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akkiesoft/c4889b38d7cabd3dd3277887ef12e141 to your computer and use it in GitHub Desktop.
Save Akkiesoft/c4889b38d7cabd3dd3277887ef12e141 to your computer and use it in GitHub Desktop.
rpilocatorみたいなことを自前でやるときのスクレイピングすべきデータ(スイッチサイエンス編)
// 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