This first lesson in our section on dealing with Online Sources is designed to get you and your computer set up to start programming. We will focus on installing the relevant software – all free and reputable – and finally we will help you to get your toes wet with some simple programming that provides immediate results.
In this opening module you will install the Python programming language, the Beautiful Soup HTML/XML parser, and a text editor. Screencaps provided here come from Komodo Edit, but you can use any text editor capable of working with Python. Here’s a list of other options: Python Editors. Once everything is installed, you will write your first programs, “Hello World” in Python and HTML.
the Python Programming Language
The programming language we will use in this series of lessons is Python, a free, open source language. Unless otherwise noted, we will be using Python v.2 throughout. Version 3 is available but we have elected to stick with version 2 because it’s the most widely used version and it is the one that ships preinstalled on new Macs. Python 3 has a few differences in formatting (think grammar rules) and if you are trying to use Python 3 with the Programming Historian, you may run into difficulties.
Backup Your Work!
Before you download or install any new software, it is crucial that you make backups of your work. You should back up your whole computer at least weekly, and preferably more frequently. It is also a good idea to make off-site backups of your work, so that you don’t lose everything if something happens to your computer or to your home or office. Sites like Jungle Disk and Dropbox provide easy-to-use and relatively inexpensive online backup options.
Choose Your Operating System
Step 1 – Install and Set Up Software
In order to work through the techniques in this website, you will need to download and install some freely available software. We have provided instructions for Mac, Windows and Linux. Once you have installed the software for your operating system, move on to ‘Viewing HTML Files’. If you run into trouble with our instructions or find something that doesn’t work on your platform, please let us know.
William J. Turkel and Adam Crymble , "Python Introduction and Installation," Programming Historian, (2012-07-17), http://programminghistorian.org/lessons/introduction-and-installation