Archive for July, 2009

Sending Email from Python using Gmail

Saturday, July 11th, 2009

It is extremely useful to send emails from scripts.  Emails can alert you to errors as soon as they happen or can give you regular status updates about the running of your programs. I have several scripts that run regularly to update various websites or scrape data from different places and quite often when dealing [...]

The Ultimate Alternative to Stock and Real Estate Investing

Thursday, July 9th, 2009

Looking to find a place to invest your money that will give very impressive returns when compared to just about any other investment product out there?  There’s a strong argument for buying websites as an alternative to stocks and an alternative real estate investing, or stocks if you want to grow your money. Here’s how [...]

How To Get RSS Content Into An Sqlite Database With Python – Fast

Tuesday, July 7th, 2009

Another in my series of Python scripting blog posts. This time I’m sharing a script that can rip through RSS feeds and devour their content and stuff it into a database in a way that scales up to 1000s of feeds. To accomplish this the script is multi-threaded. The big problem with scaling up a [...]

Advanced Bit.ly Link Tracking Techniques

Sunday, July 5th, 2009

Bit.ly offers a very simple API for creating short URLs. The service can also provide you with some basic click statistics. Unfortunately there are a few missing pieces to the API. To get around that you’ll have to keep a list of bit.ly links you want to track. Depending on your situation you may need [...]

Development Frustrations with Google App Engine

Friday, July 3rd, 2009

For the past two weeks I have been working on a project that has great potential of really taking off in a big way. I’m developing the site using Python and the Django framework running on Google App Engine. I have a lot of good things to say about working with this development stack. Some [...]

RSS Twitter Bot in Python

Wednesday, July 1st, 2009

I was a little bored today and decided to write up a simple script that pushes RSS feed information out to Twitter and manages to keep track of the history so that tweets are not sent out more than once. It was actually a very trivial little script to write but it could actually be [...]