repo.or.cz
/
archive.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
minor fixed rghost
[archive.git]
/
Apkawa
/
gismeteo.py
blob
92067a0ad3927cf9900f8d07eeca3407c2d17488
1
import
urllib
,
re
,
unicodedata
2
xml
=
urllib
.
urlopen
(
'http://informer.gismeteo.ru/rss/26063.xml'
).
read
()
3
xml
=
unicodedata
.
normalize
(
cp1251
,
xml
)
4
parse
=
re
.
findall
(
'<item>[\s\S\w\W]*?</item>'
,
xml
)
5
print
parse