Embedding mailchimp's sign-up form



Want to receive updates from me? Subscribe below!

In [19]:
html_string = '<link href="//cdn-images.mailchimp.com/embedcode/slim-10_7.css" rel="stylesheet" type="text/css">\
<style type="text/css">\
	#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }\
</style>\
<div id="mc_embed_signup">\
<form action="//github.us14.list-manage.com/subscribe/post?u=324739f7480162ee8cad453b8&amp;id=6f694b24ee" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>\
    <div id="mc_embed_signup_scroll">\
	<label for="mce-EMAIL">Subscribe to our mailing list</label>\
	<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>\
    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->\
    <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_324739f7480162ee8cad453b8_6f694b24ee" tabindex="-1" value=""></div>\
    <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>\
    </div>\
</form>\
</div>\
<!--End mc_embed_signup-->'
In [20]:
from IPython.core.display import display, HTML
display(HTML(html_string))

Comments


Comments powered by Disqus