[Tutor] Is there a better way to get a current mid-rate Yen

Lie Ryan lie.1296 at gmail.com
Sat Jul 26 02:44:39 CEST 2008


> Date: Fri, 25 Jul 2008 05:14:32 -0700
> From: Dick Moores <rdm at rcblue.com>
> Subject: [Tutor] Is there a better way to get a current mid-rate Yen
>         quote with Python?
> To: Python Tutor List <tutor at python.org>
> Message-ID: <20080725121444.818C41E4007 at bag.python.org>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
> 
> Better than this? <http://py77.python.pastebin.com/fc7553a4>
> 
> I've heard about BeautifulSoup. 
> <http://www.crummy.com/software/BeautifulSoup/>. Is it worth 
> learning? Is it crummy? ;-)
> 
> So 2 questions.
> 
> Thanks,
> 
> Dick Moores

Slightly better would be to use the re (regular expression) module.
It'd be more flexible than coding and easier than Beautiful Soup (which,
IMHO, is an overkill for simple data extraction like this).



More information about the Tutor mailing list