noodlesloves 2 years ago
parent
commit
f56f4d10de
1 changed files with 3 additions and 3 deletions
  1. 3 3
      run4.py

+ 3 - 3
run4.py

@@ -426,14 +426,14 @@ def photos_parsing_js(resp):
         photo_category_map[row[0]] = row[2]
 
     if photo_category_map[jsobj[13][0]] == '全部':
-        for img in jsobj[0][:5]:
+        for img in jsobj[0]:
             all += [image_url_change_size(img[6][0])]
 
     elif photo_category_map[jsobj[13][0]] == '菜單':
-        for img in jsobj[0][:5]:
+        for img in jsobj[0]:
             menu += [image_url_change_size(img[6][0])]
 
-    return menu, all
+    return list(set(menu)), list(set(all))
     
 
 def process_web_request_photo(driver, output, fid):