Re: [Tutor] PyQuery

2011-03-10 Thread David Hutto
pseudo: for line in file: query = {} columnheader = line[0] headercontent = line[1] query[columnheader] = [header1content] ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailm

Re: [Tutor] PyQuery

2011-03-09 Thread Okta Satria
I have basic understanding of dictionary and urllib. http://id.wikipedia.org/wiki/Tabel_perbandingan_ukuran_jarum_hipodermik I extracted the html file from that site by using urllib library. Then, I read PyQuery, it's JQuery-Like. So, I want to extract the content of the table and I want the res

Re: [Tutor] PyQuery

2011-03-09 Thread bob gailer
On 3/9/2011 11:52 AM, Okta Satria wrote: Dear All, I'm new in python programming. Now I'm learning about dictionary and PyQuery. Could someone help me to read this table please: http://id.wikipedia.org/wiki/Tabel_perbandingan_ukuran_jarum_hipodermik end the result is in nested dictionary li

[Tutor] PyQuery

2011-03-09 Thread Okta Satria
Dear All, I'm new in python programming. Now I'm learning about dictionary and PyQuery. Could someone help me to read this table please: http://id.wikipedia.org/wiki/Tabel_perbandingan_ukuran_jarum_hipodermik end the result is in nested dictionary like this: 'Jarum' : 'Guage', 'Perkiraan Diam