Created
November 19, 2018 00:41
-
-
Save nrm176/04067fad904fee4975a09d05cb6a52c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
1. Go visit https://folio-sec.com/ | |
2. Copy the following command on Chrome Developer Tool and execute it | |
```javascript | |
[].concat.apply([], Array.from(document.querySelectorAll('section.slider.landingPageSlider div.slider__outer')).map((e)=>{ return Array.from(e.querySelectorAll('a.card')).map((e)=>{ var k = Array.from(e.querySelectorAll('h1.card__name > span')).map((e)=>{return e.textContent}).reduce((c,v)=>{return c+v}); var v = e.querySelector('div.card__return > p').textContent; return {'key':k, 'value':v}})})) | |
``` | |
3. You will get the json like the following: | |
[ | |
{ | |
"key": "半導体材料", | |
"value": "+7.5%" | |
}, | |
{ | |
"key": "ドローン", | |
"value": "+8.1%" | |
}, | |
{ | |
"key": "宇宙開発", | |
"value": "+0.5%" | |
}, | |
.... | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment