Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Emailing results of python script

Hi all,

I am new to python and can't seem to find the answer I am looking for. I have created a python script that scrapes a website. I want to email these results to myself (eventually have this script run every night). I am using the smtplib to send the email and I am able to send it with a basic string message for the content.

How do I get the content to be the output from the web scrape?

1 Answer

I found several examples by Googling "python email results of web scraping".