Re: Html character entity conversion

2006-09-09 Thread yichun
[EMAIL PROTECTED] wrote: danielx wrote: [EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0) b[source] = hello python html =

Re: Html character entity conversion

2006-08-01 Thread Anthra Norell
Pak (or Andrei, whichever is your first name), My proposal below: - Original Message - From: [EMAIL PROTECTED] Newsgroups: comp.lang.python To: python-list@python.org Sent: Sunday, July 30, 2006 8:52 PM Subject: Re: Html character entity conversion danielx wrote: [EMAIL

Re: Html character entity conversion

2006-08-01 Thread Claudio Grondi
Anthra Norell wrote: import SE# Available at the Cheese Shop I mean, that OP requested: 'How can I translate this using standard Python libraries??' so it's just only not on topic. Claudio Grondi -- http://mail.python.org/mailman/listinfo/python-list

Re: Html character entity conversion

2006-08-01 Thread Duncan Booth
[EMAIL PROTECTED] wrote: How can I convert encoded string sEncodedHtmlText = '#1087;#1088;#1080;#1074;#1077;#1090; #1087;#1080;#1090;#1086;#1085;' into human readable: sDecodedHtmlText == 'привет питон' How about: sEncodedHtmlText = 'text:

Re: Html character entity conversion

2006-08-01 Thread Anthra Norell
- Original Message - From: Claudio Grondi [EMAIL PROTECTED] Newsgroups: comp.lang.python To: python-list@python.org Sent: Tuesday, August 01, 2006 2:42 PM Subject: Re: Html character entity conversion Anthra Norell wrote: import SE# Available at the Cheese Shop I mean

Re: Html character entity conversion

2006-07-31 Thread Claudio Grondi
John Machin wrote: Claudio Grondi wrote: [EMAIL PROTECTED] wrote: Claudio Grondi wrote: [EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0)

Re: Html character entity conversion

2006-07-30 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0) b[source] = hello python html = b.submit().get_data() soup = BeautifulSoup(html)

Re: Html character entity conversion

2006-07-30 Thread danielx
[EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0) b[source] = hello python html = b.submit().get_data() soup = BeautifulSoup(html) print

Re: Html character entity conversion

2006-07-30 Thread [EMAIL PROTECTED]
Claudio Grondi wrote: [EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0) b[source] = hello python html = b.submit().get_data()

Re: Html character entity conversion

2006-07-30 Thread [EMAIL PROTECTED]
danielx wrote: [EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0) b[source] = hello python html = b.submit().get_data() soup =

Re: Html character entity conversion

2006-07-30 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0) b[source] = hello python html = b.submit().get_data() soup =

Re: Html character entity conversion

2006-07-30 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: Claudio Grondi wrote: [EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0) b[source] = hello python html =

Re: Html character entity conversion

2006-07-30 Thread John Machin
Claudio Grondi wrote: [EMAIL PROTECTED] wrote: Claudio Grondi wrote: [EMAIL PROTECTED] wrote: Here is my script: from mechanize import * from BeautifulSoup import * import StringIO b = Browser() f = b.open(http://www.translate.ru/text.asp?lang=ru;) b.select_form(nr=0) b[source] =