Guest User

Untitled

a guest
Jun 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. with open('/tmp/email.html','w') as f:
  2. f.write(html.get_content())
  3. subprocess.call('webkit2png -x 800 800 -w 1 -o /tmp/email.png file:///tmp/email.html', shell=True)
  4. up = open('/tmp/email.png','r')
Add Comment
Please, Sign In to add comment