Skip to content

Instantly share code, notes, and snippets.

@wirewc
wirewc / PhennyNews.py
Last active August 29, 2015 14:06
News module for the IRC bot makepi for #makelv and #archassault.
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
"""This reads the news for google news."""
import feedparser,requests,json,urllib,urllib2
tech = """https://news.google.com/news/section?pz=1&cf=all&ned=us&hl=en&topic=tc&output=rss"""
archNewsUrl = """https://www.archlinux.org/feeds/news/"""
hadUrl = """http://feeds2.feedburner.com/hackaday/LgoM"""
mlvUrl= """http://makelehighvalley.com/blog/feed/"""
h76Url = """http://feeds.feedburner.com/Hive76"""
crackedUrl = """http://feeds.feedburner.com/CrackedRSS"""
@wirewc
wirewc / ExcelFunc.py
Created August 5, 2014 16:03
Python27 Microsoft Excel functions
"""This script is an example of simple read and write functions to a spreadsheet. One may import these features
into their own programs or use them as an example for using the COM interface in Python.
This is quite possibly the most useful code I have ever written to facilitate automated testing or code
generation in a windows environment. Please let me know where this code gets used so I can keep a small
record of other people it has helped =D.
Writen by William Christensen, wirewc@gmail.com
"""