Welcome, guest | Sign In | My Account | Store | Cart

reads bash.org/latest and saves it to a pre made .html file. on mac OSX i made a simple automater program that runs python BashReader.py in the terminal and set it to run when i login. evry time it runs it overwrites the old file so you don't have to worry about hundreds of bash.htmls mounting up on your computer

Python, 15 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#####################################################
# title: BashReader
# auther: max baseman
# date: 03/19/07 4:23
# email: dos.fool@gmail.com
# discription: checks bash and writes it
#####################################################
import urllib2
from sys import stdout
from time import sleep
bash=urllib2.urlopen("http://www.bash.org/?latest")
WEB=open("/Users/thefool/Desktop/max/programs/sites/bash.html",'w') # change to path of html 

for line in bash:
    WEB.write(line)
    

everybody loves bash.org rite! but sometimes you forget to check the latest what then you might miss something golden with this checking for you you don't have to worry.