This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Threadworms (a Python/Pygame threading demonstration) | |
| # By Al Sweigart al@inventwithpython.com | |
| # http://inventwithpython.com/blog | |
| # Released under a "Simplified BSD" license | |
| # This is meant to be an educational example of multithreaded programming, | |
| # so I get kind of verbose in the comments. | |
| import random | |
| import pygame |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import feedparser | |
| from email.MIMEMultipart import MIMEMultipart | |
| from email.MIMEText import MIMEText | |
| import smtplib | |
| import re | |
| def getFeeds(rssfeed, regex=None): | |
| feed_dict = {} | |
| for feed in rssfeed.entries: |