Render an specific element and children (via cropping)
I'd like to be able to use a selector to return just the content within a specific HTML element. The goal for me personally is to allow users the ability to render specific elements to help establish structured information and share information about a specific element via an image.
this has been available for some time. for example, this: https://phantomjscloud.com/api/browser/v2/a-demo-key-with-low-quota-per-ip-address/?request=%7Burl:%22http://localhost/examples/corpus/flower.png%22,renderType:%22png%22,renderSettings:%7Bselector:%22img%22%7D%7D
Please see the docs regarding renderSettings. email support@phantomjscloud.com if you still need assistance.
-
If you could send me a link to what you want to do in "normal" phantomjs I'll review the implementation and see if we can get what you need added.
That said, the biggest issue is re-rendering a page after modifying it. I'm not sure how to do this in PhantomJs.
-
Jay commented
Why don't you use injected javascript to delete elements you don't want to see?