Tonic Task Extracter Script

Tonic Task Extracter Script

3 devlogs
3h 46m
Created by Maadhav Bhatt

A JS script that extracts the Tonic's task text into a markdown file for easy readability.

Note that I'm only writing the scraping script. I haven't contributed to anything else in Tonic (that's all, Lux and team).

Timeline

Small bug fixes and refactoring.

Update attachment

This devlog should probably have been split into many, but I got sucked into coding.

What did I do?

I completed the thing. This script now extracts task text from the task JS files in hackclub/tonic. This is something I'd use and as of writing, 9 upvoters seem to like the idea of. I'll be adding updates to make the presentation better and adding nice-to-have features, but this Minimum Viable Product is here.

Commits

fix: correct method call to getSentenceFromString in Sentence constructor
feat: refactor scrape.js to use ES module syntax and enhance sentence extraction logic
refactor: rename and restructure scrape functions to improve clarity and organization
chore: update .gitignore to include taskText.json
feat: enhance task scraping functionality with validation and markdown conversion
chore: ignore taskText.md
fix: correct workaround implementation of kwargs in JS
feat: default to scraping all tasks if no tasksList is provided
fix: ensure tasks list includes .js extension

Update attachment

feat: implement Sentence class to extract sentences from lines of code

Update attachment