string.letters is changes uppercase position between python version, use string.ascii_uppercase
This commit is contained in:
parent
d2a6511a95
commit
94ca01a041
2 changed files with 7 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue