News for hackers. Stuff that matters.
Re:IMGKit: Python library of HTML to IMG wrapper by NKCSS on Monday January 30, 2017 @10:12AM (#13521761)
What would be a good reason to use this over PhantomJS?
Re:IMGKit: Python library of HTML to IMG wrapper by pmlnr on Monday January 30, 2017 @11:46AM (#13522691)
As much as I despise the nodejs dependency hell, PhantomJS is a better solution when compared to wkhtml, so a Python-PhantomJS wrapper would be a significantly better product imho.
Re:IMGKit: Python library of HTML to IMG wrapper by tyingq on Monday January 30, 2017 @01:18PM (#13523633)
At least for screenshots, the headless support recently introduced into chrome might be the most straightforward solution, with the fewest pieces.

Some detail: https://docs.google.com/document/d/1VTcYz4q_x0f1O5IVrvRX4u1D...

Re:IMGKit: Python library of HTML to IMG wrapper by NKCSS on Monday January 30, 2017 @12:13PM (#13522969)
PhantomJS has stand-alone binaries that you can just call from Python if you wanted.
Re:IMGKit: Python library of HTML to IMG wrapper by hackerboos on Monday January 30, 2017 @01:18PM (#13523625)
That's all this project does.
Re:IMGKit: Python library of HTML to IMG wrapper by Keyframe on Monday January 30, 2017 @10:39AM (#13521998)
Python
Re:IMGKit: Python library of HTML to IMG wrapper by djm_ on Monday January 30, 2017 @10:18AM (#13521814)
If you wanted a different engine: Webkit.

Edit: I was mistaken, they both back to Webkit.

Re:IMGKit: Python library of HTML to IMG wrapper by NKCSS on Monday January 30, 2017 @10:26AM (#13521892)
PhantomJS is also WebKit...
Re:IMGKit: Python library of HTML to IMG wrapper by sunilkumarc on Monday January 30, 2017 @11:10AM (#13522324)
PhantomJS is a JavaScript API. This is a Python API.