-5
Recreational languages win at code golf too much. This challenge is simple, when using higher level functions.
The task is as follows:
Given any valid url, which is guaranteed to result in a valid HTML document (for example https://en.wikipedia.org/wiki/Ruby_on_Rails, which has 9 images), count the number of images displayed from the resultant webpage.
Only images visible in the HTML code are counted, marked by the HTML <img>
tag.
Websites that can continually load images (Google Images) are not valid tests.
Comments are not for extended discussion; this conversation has been moved to chat.
– Mego – 2018-04-12T12:47:24.4972
This is [tag:code-golf], right? The shortest code wins, right? Then why does a 61 byte answer beat an 10 byte answer? If my answer is invalid in some way, just comment on my post.
– NoOneIsHere – 2018-04-13T22:55:26.343