Skip to content

mnachmi/django-phantomjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-phantomjs

A Django app. which wraps PhantomJs.

image/<URL>     Render an image of the URL in question (rasterize.js)
traffic/<URL>   Return JSON-formatted details of network traffic (netsniff.js)
urls/<URL>      As with 'traffic' but return a simple list of URLs (netsniff.js)
imageurls/<URL> Returns a JSON structure containing the same output as "/urls/" and a Base64-encoded 
                version of the output of "/image/".
domimage/<URL>  Returns a JSON structure based on the HAR format, containing the rendered URL both as an 
                image and as the onReady DOM. Any fields POSTed to this endpoint are interpreted as DOM 
                selectors, which can be used to generated rendered forms of particular sections 
                of the final page.

The examples directory contains the actual PhantomJS scripts. The scripts directory contains various Python scripts for sending/receiving data.

About

Django app. for calling PhantomJs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.5%
  • JavaScript 46.5%