[Tutor] Feedparser and google news/google reader

2010-03-10 Thread David Kim
I have been working through some of the examples in the Programming Collective Intelligence book by Toby Segaran. I highly recommend it, btw. Anyway, one of the simple exercises required is using feedparser to pull in RSS/Atom feeds from different sources (before doing more interesting things). Th

[Tutor] Feedparser and Google News feeds

2010-03-10 Thread David Kim
I have been working through some of the examples in the Programming Collective Intelligence book by Toby Segaran. I highly recommend it, btw. Anyway, some of the exercises use feedparser to pull in RSS/Atom feeds from different sources (before doing more interesting things). The algorithm stuff I

Re: [Tutor] Parsing html tables and using numpy for subsequent processing

2009-09-17 Thread David Kim
ok at the link you posted as well (I'm traveling at the moment). Cheers, -- David Kim "I hear and I forget. I see and I remember. I do and I understand." -- Confucius morenotestoself.wordpress.com financialpython.wordpress.com ___ Tutor m

[Tutor] Parsing html tables and using numpy for subsequent processing

2009-09-15 Thread David Kim
Hello all, I've finally gotten around to my 'learn how to parse html' project. For those of you looking for examples (like me!), hopefully it will show you one potentially thickheaded way to do it. For those of you with powerful python-fu, I would appreciate any feedback regarding the direction I

Re: [Tutor] Help deciding between python and ruby

2009-09-04 Thread David Kim
On Fri, 2009-09-04 at 06:18 -0700, dan06 wrote: > I'd like to learn a programming language - and I need help deciding between > python and ruby. I'm interesting in learning what are the difference, both > objective and subjective, between the two languages. I know this is a python > mailing list, s

Re: [Tutor] python's database

2009-08-16 Thread David Kim
I don't know how much it's in use, but I thought gadfly ( http://gadfly.sourceforge.net/) was the db that's implemented in python. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Automating creation of presentation slides?

2009-08-12 Thread David Kim
Unfortunately I live on the East Coast, otherwise I'd definitely attend! I am attracted to the declarative nature of reStructuredText, but I also recognize that A LOT of people use Powerpoint and are comfortable with it. Going with something else might freak people out. It also occurs to me that E

Re: [Tutor] Automating creation of presentation slides?

2009-08-12 Thread David Kim
rs, DK On Wed, Aug 12, 2009 at 8:52 AM, Kent Johnson wrote: > On Wed, Aug 12, 2009 at 12:51 AM, David Kim wrote: > > Hi everyone, > > > > I'm wondering what people consider the most efficient and brain-damage > free > > way to automate the creation o

[Tutor] Automating creation of presentation slides?

2009-08-12 Thread David Kim
Hi everyone, I'm wondering what people consider the most efficient and brain-damage free way to automate the creation of presentation slides with Python. Scripting Powerpoint via COM? Generating a Keynote XML file? Something else that's easier (hopefully)? I'm imagining a case where one does cert

Re: [Tutor] building database with sqlite3 and matplotlib

2009-08-08 Thread David Kim
Thanks so much for the comments! I appreciate the look. It's hard to know what the best practices are (or if they even exist). On Sat, Aug 8, 2009 at 2:28 PM, Kent Johnson wrote: > > You don't seem to actually have a main(). Are you running this by importing > it? > > I would make a separate func

[Tutor] building database with sqlite3 and matplotlib

2009-08-07 Thread David Kim
Hello everyone, I've been learning python in a vacuum for the past few months and I was wondering whether anyone would be willing to take a look at some code? I've been messing around with sqlite and matplotlib, but I couldn't get all the string substitution (using ?s). I ended up getting the scri

Re: [Tutor] Urllib, mechanize, beautifulsoup, lxml do not compute (for me)!

2009-07-07 Thread David Kim
Thanks Kent, perhaps I'll cool the Python jets and move on to HTTP and HTML. I was hoping it would be something I could just pick up along the way, looks like I was wrong. dk On Tue, Jul 7, 2009 at 1:56 PM, Kent Johnson wrote: > On Tue, Jul 7, 2009 at 1:20 PM, David Kim wrote: >>

Re: [Tutor] Urllib, mechanize, beautifulsoup, lxml do not compute (for me)!

2009-07-07 Thread David Kim
On Tue, Jul 7, 2009 at 7:26 AM, Kent Johnson wrote: > > curl works because it ignores the redirect to the ToS page, and the > site is (astoundingly) dumb enough to serve the content with the > redirect. You could make urllib2 behave the same way by defining a 302 > handler that does nothing. Many

[Tutor] Urllib, mechanize, beautifulsoup, lxml do not compute (for me)!

2009-07-06 Thread David Kim
Hello all, I have two questions I'm hoping someone will have the patience to answer as an act of mercy. I. How to get past a Terms of Service page? I've just started learning python (have never done any programming prior) and am trying to figure out how to open or download a website to scrape da