Anonymous user
Rosetta Code:Village Pump/tasks descriptions only: Difference between revisions
Rosetta Code:Village Pump/tasks descriptions only (view source)
Revision as of 15:41, 16 April 2015
, 9 years agofound phantomjs. Make this a challenge?
m (a few things that happened after I ran it.) |
(found phantomjs. Make this a challenge?) |
||
Line 47:
::Here's a SlimerJS solution. Not perfect but seems to work reasonably well (it's funny watching all the little windows open and close.) A little annoyingly, SlimerJS doesn't implement innerText, so there are the odd occasions where there's markup in the file. Also, occasionally there's a TABLE that's not the contents before the contents, thus truncating the description.
::<lang javascript>var fs = require('fs');
function innerCall(nam, ref) {
Line 87:
});</lang>
::I would have used PhantomJs but had trouble building it and lost patience rapidly.
[[User:Axtens|Axtens]] ([[User talk:Axtens|talk]]) 15:21, 16 April 2015 (UTC)
::Ah silly me, I should have done a 'sudo apt install phantomjs'. Trying that now. Meanwhile, I'm happy to make this a challenge. Worthwhile? [[User:Axtens|Axtens]] ([[User talk:Axtens|talk]]) 15:41, 16 April 2015 (UTC)
|