#!/usr/bin/env python3 from urllib.parse import parse_qs print("# automaticly generated from qs_to_list.py") #27 levels qs = [] qs.append('page=slide&action=complete&level=1&hflip=1&vflip=1&solution=032&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=2&hflip=0&vflip=1&solution=30103&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=3&hflip=1&vflip=0&solution=12301210&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=4&hflip=0&vflip=0&solution=012123&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=5&hflip=1&vflip=0&solution=030321&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=6&hflip=0&vflip=1&solution=01032103&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=7&hflip=0&vflip=0&solution=103212&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=8&hflip=0&vflip=1&solution=12123010&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=9&hflip=0&vflip=0&solution=0123&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=10&hflip=1&vflip=0&solution=0&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=11&hflip=0&vflip=1&solution=20321010&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=12&hflip=1&vflip=1&solution=303230101&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=13&hflip=0&vflip=0&solution=012123012321212103&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=14&hflip=1&vflip=0&solution=2130&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=15&hflip=0&vflip=0&solution=030110310&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=16&hflip=1&vflip=0&solution=03212301230320123032&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=17&hflip=1&vflip=0&solution=2222011112321&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=18&hflip=0&vflip=0&solution=210103010323232&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=19&hflip=1&vflip=1&solution=32123032121302103032101&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=65&hflip=1&vflip=0&solution=2103230123&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') # level 65... weird qs.append('page=slide&action=complete&level=66&hflip=1&vflip=0&solution=230301230301&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=67&hflip=0&vflip=1&solution=3012301121231203012121203012123&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=68&hflip=0&vflip=0&solution=032103012&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=69&hflip=0&vflip=1&solution=30321032123232132103203210321232321210&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') # you should come back to fix this some time qs.append('page=slide&action=complete&level=70&hflip=1&vflip=1&solution=3012321032103012032103212&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=71&hflip=0&vflip=0&solution=030323030101013232103010123&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=72&hflip=1&vflip=1&solution=23212321321032313012123010132321231023032123030&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') qs.append('page=slide&action=complete&level=73&hflip=1&vflip=0&solution=3030&key=cbO_VxSG_0kklt4LHX28pQ93WJEiw5WV') # levels # 0: level # 1: hflip # 2: vflip # 3: solution processed_qs = [] for url in qs: url = parse_qs(url) processed_qs.append([url['level'], url['hflip'], url['vflip'], url['solution']]) print("[", end="") for s in processed_qs: print(s, end=",\n") print("]")