string.letters is changes uppercase position between python version, use string.ascii_uppercase

This commit is contained in:
j 2014-04-22 19:03:32 +02:00
commit 94ca01a041
2 changed files with 7 additions and 7 deletions

View file

@ -4,11 +4,11 @@ import re
import string
import subprocess
import ox
import os
def get_ids():
result = []
for i in string.letters[26:]:
for i in string.ascii_uppercase:
url = "http://www.filmsdivision.org/search.php?title=%s" % i
data = ox.cache.read_url(url)
links = re.compile('view_video.php\?movId=(.*?)[\'"]', re.DOTALL).findall(data)