Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('/tmp/email.html','w') as f:
- f.write(html.get_content())
- subprocess.call('webkit2png -x 800 800 -w 1 -o /tmp/email.png file:///tmp/email.html', shell=True)
- up = open('/tmp/email.png','r')
Add Comment
Please, Sign In to add comment