It doesn&#x27;t. To scrape (or fake-API) js-only websites you have to either:<p>- drive a browser (firefox&#x2F;chrome) via already mentioned here selenium&#x2F;webdriver (potentially hiding the actual browser window into a virtual X by wrapping the whole thing with xvfb-run),<p>- or use one of the webkit-based toolkits: phantomjs [1] or headless horseman [2].<p>There is also an interesting project that combines the two, i.e. it drives a Firefox (or, more precisely, slightly outdated version of Gecko) to emulate a phantomjs-compatible API. [3]<p>phantomjs&#x2F;slimerjs are pretty popular and even have tools that run on top of them, such as casperjs [4], that geared more to automated website testing, but can be quite good at scraping or fake-APIing too.<p>[1] <a href="http:&#x2F;&#x2F;phantomjs.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;phantomjs.org&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;johntitus&#x2F;node-horseman" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;johntitus&#x2F;node-horseman</a><p>[3] <a href="https:&#x2F;&#x2F;slimerjs.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;slimerjs.org&#x2F;</a><p>[4] <a href="http:&#x2F;&#x2F;casperjs.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;casperjs.org&#x2F;</a>