mirror of
https://github.com/sstent/NYT_Sudoku.git
synced 2025-12-06 06:01:41 +00:00
Update NYT.py
This commit is contained in:
2
NYT.py
2
NYT.py
@@ -13,7 +13,7 @@ table = soup.find_all("div", {"class":"pz-game-screen"})[0]
|
||||
script = table.find_all("script", {"type":"text/javascript"})
|
||||
text = script[0].get_text().split("=")[1]
|
||||
Dict = json.loads(text)
|
||||
grid = np.array( Dict[difficulty]["puzzle_data"]["puzzle"] ).reshape(9,9).tolist()
|
||||
grid = np.array( Dict["hard"]["puzzle_data"]["puzzle"] ).reshape(9,9).tolist()
|
||||
|
||||
hard_puzzle_id = Dict["hard"]["puzzle_id"]
|
||||
hard_published = Dict["hard"]["published"]
|
||||
|
||||
Reference in New Issue
Block a user