Quantcast
Channel: brool » python
Browsing latest articles
Browse All 5 View Live

Parsing Tables With Beautiful Soup

Just a quick snippet, since it is obvious after writing it but was not obvious while searching for it: html = file("whatever.html") soup = BeautifulSoup(html) t = soup.find(id=label) dat = [ map(str,...

View Article



Creating Mail Digests with Python and IMAP

There should be a word for “effort undertaken even though you’re sure, somewhere, somebody has written something for it already, or maybe it’s already a Linux command.” I get the distinct feeling that...

View Article

Python to Haskell (String Functions)

I will be updating this as I go… but see also the Wikipedia page on string functions in various languages. Joining a string list -- Python: ",".join(lst) -- either... import Data.List intercalate ","...

View Article

Using MissingPy

For comparison purposes, I was rewriting the silly little e-mail digest program in Haskell, using Python libraries for the IMAP interface (it’s available on Github). It’s hard to beat Python’s amazing...

View Article

Hacks: Python Calling PHP

(This is almost too stupid to post, but on the off chance that someone actually needs something like this…) I needed to interface with a bunch of data that had PHP wrapper classes, and needed a quick...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images