2WmJT4RYpCJK0GQKYHWlLx changeset

Changeset373230326132 (b)
Parent326639343661 (a)
ab
0-# -*- coding: utf-8 -*-
0-from pyquery import PyQuery
0-import subprocess
0-import os
0-
0-dirname = '/Users/gawel/Music/NinjaTunePodcasts'
0-
0-pods = [
0-        'http://bigdada.com/podcast/rss.xml',
0-        'http://www.coldcut.net/podcast.rss',
0-        'http://www.ninjatune.net/ninjacast.xml',
0-        'http://www.ninjatune.net/solidsteel/rss.xml',
0-        ]
0-
0-for p in pods:
0-    doc = PyQuery(p)
0-    for item in doc('item'):
0-        item = PyQuery(item)
0-        url = item('[@url$="mp3"]').attr('url')
0-        if url:
0-            title = item('title').text()
0-            if title:
0-                filename = os.path.join(dirname, '%s.mp3' % title)
0-            else:
0-                filename = os.path.join(dirname, url.split('/')[-1])
0-            filename = filename.replace(' ', '_')
0-            cmd = 'wget -cO "%s" %r' % (filename, url)
0-            subprocess.call(cmd, shell=True)
0+rQkjPA  <a href="http://gdxyvveblntk.com/">gdxyvveblntk</a>, [url=http://lhvdyldjsfdc.com/]lhvdyldjsfdc[/url], [link=http://dnmhivdqvgtn.com/]dnmhivdqvgtn[/link], http://fqzgxljtgslu.com/
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- Revision 326639343661
+++ Revision 373230326132
@@ -1,28 +1,1 @@
-# -*- coding: utf-8 -*-
-from pyquery import PyQuery
-import subprocess
-import os
-
-dirname = '/Users/gawel/Music/NinjaTunePodcasts'
-
-pods = [
- 'http://bigdada.com/podcast/rss.xml',
- 'http://www.coldcut.net/podcast.rss',
- 'http://www.ninjatune.net/ninjacast.xml',
- 'http://www.ninjatune.net/solidsteel/rss.xml',
- ]
-
-for p in pods:
- doc = PyQuery(p)
- for item in doc('item'):
- item = PyQuery(item)
- url = item('[@url$="mp3"]').attr('url')
- if url:
- title = item('title').text()
- if title:
- filename = os.path.join(dirname, '%s.mp3' % title)
- else:
- filename = os.path.join(dirname, url.split('/')[-1])
- filename = filename.replace(' ', '_')
- cmd = 'wget -cO "%s" %r' % (filename, url)
- subprocess.call(cmd, shell=True)
+rQkjPA <a href="http://gdxyvveblntk.com/">gdxyvveblntk</a>, [url=http://lhvdyldjsfdc.com/]lhvdyldjsfdc[/url], [link=http://dnmhivdqvgtn.com/]dnmhivdqvgtn[/link], http://fqzgxljtgslu.com/