Skip to content
Permalink
Browse files

Update scrape.py

updated pages array to take a range instead of creating it manually
  • Loading branch information...
jaku committed Mar 17, 2019
1 parent c981e2b commit c0a2ec6ba484f249fb6a44e487edf772dbcb2717
Showing with 2 additions and 3 deletions.
  1. +2 −3 scripts/scrape.py
@@ -56,8 +56,7 @@ def save_frame(out_dir, stream_url):
cv2.imwrite(out_path, frame)


pages = [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]

pages = range(1, 25)

def download_game_images(game_name, max_images):
game_dir = os.path.join("Screenshots", game_name.replace(":", ""))
@@ -130,4 +129,4 @@ def main():
download_frames()


main()
main()

0 comments on commit c0a2ec6

Please sign in to comment.
You can’t perform that action at this time.