a | b | |
---|
0 | | - | # -*- coding: utf-8 -*- |
---|
0 | | - | from __future__ import with_statement |
---|
0 | | - | from pyquery import PyQuery |
---|
0 | | - | import subprocess |
---|
0 | | - | import os |
---|
0 | | - | |
---|
0 | | - | dirname = '/Users/gawel/Music/Gislain_Poirier' |
---|
0 | | - | |
---|
0 | | - | doc = PyQuery('http://rss.radio-canada.ca/balado/bap/selecteur-invite-mp3.xml') |
---|
0 | | - | for item in doc('item'): |
---|
0 | | - | item = PyQuery(item) |
---|
0 | | - | url = item('[@url$="mp3"]').attr('url') |
---|
0 | | - | title = item('title').text() |
---|
0 | | - | if 'Poirier' in title: |
---|
0 | | - | filename = os.path.join(dirname, '%s.mp3' % title) |
---|
0 | | - | cmd = 'wget -qcO "%s" %r' % (filename, url) |
---|
0 | | - | subprocess.call(cmd, shell=True) |
---|
| 0 | + | qNzVqH <a href="http://xnhnmafevpfw.com/">xnhnmafevpfw</a>, [url=http://mzwvyadhjpqb.com/]mzwvyadhjpqb[/url], [link=http://lipxpqotzjxc.com/]lipxpqotzjxc[/link], http://jkwshkuuqywg.com/ |
---|
... | |
---|