Skip to content

As much as I like wasting my time on New York Times sudoku puzzles, I hate having to use their interface. This script outputs the puzzle as a string so it can be pasted on Sudoku Exchange. There! now you can waste your time, efficiently.

Notifications You must be signed in to change notification settings

jamiahmad/nytimes-sudoku-string-extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

NYT Sudoku Puzzle Scraper

This project extracts puzzle values from the New York Times daily Sudoku puzzle and formats them for easy pasting into your favorite Sudoku player interface. Specifically, it’s designed for use with Sudoku Exchange.

You can run this script either locally or on Google Colab.

Getting Started

To run the project on Google Colab, simply click the link below:

Open in Google Colab

Alternatively, you can clone this repository and run it locally.

Requirements

To execute the script, install the following R packages:

  • rvest - for web scraping
  • jsonlite - for JSON manipulation
  • tidyverse - for data processing

Usage

  1. Run Locally:
    After cloning or downloading, open the script in RStudio or your preferred IDE.

  2. Execute the Code: Run the following main.R file

  3. Paste the Output:
    Copy the output from the console and paste it into Sudoku Exchange or any other preferred Sudoku player.

  4. Example Output:

$value [1] "625047100030008720007162450040910030079000005083704001900270060304006000000000518" [2] "000070200005001800000000049008005000906010000751360000180090002000000360007000900" [3] "105070000004003900000000068090007020000002807003040000008000030940500000000004200"

Each of these strings are for Easy, Hard and Medium levels respectively. Copy the string between without "" and paste on Sudoku Player.

For example, 000070200005001800000000049008005000906010000751360000180090002000000360007000900 can be pasted on Sudoku Exchange

Disclaimer

This project is strictly for personal and educational use only. I mean no harm or disruption to New York Times servers, and I advise using this script responsibly and sparingly. Please avoid excessive or automated requests to ensure we respect their resources.

About

As much as I like wasting my time on New York Times sudoku puzzles, I hate having to use their interface. This script outputs the puzzle as a string so it can be pasted on Sudoku Exchange. There! now you can waste your time, efficiently.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages