This short Ruby script shows how you can extract tiddlers from the tiddler store in a single-file TW 5.2.0. Hopefully something mildly interesting and useful to someone
Usage:
$ tiddlers.rb full.html
Which results in something like:
"A free, open source wiki revisited" by Mark Gibbs, NetworkWorld
modified: 20160204225307847
"A Thesis Notebook" by Alberto Molina
modified: 20130302084548184
"ATWiki" by Lamusia Project
modified: 20210106151026834
"BJTools" by buggyj
modified: 20210106151026926
"BrainTest - tools for a digital brain" by Danielo Rodriguez
modified: 20210106151026982
"Cardo - Task and Project Management Wiki" by David Szego
modified: 20210106151026996
...
require 'nokogiri'
require 'json'
fn = ARGV.shift
doc = Nokogiri::HTML(File.read(fn))
tiddler_store = doc.xpath("//script[@class='tiddlywiki-tiddler-store']")
json = JSON.parse(tiddler_store.text)
json.each {|tid|
puts tid["title"]
puts "modified: #{tid["modified"]}"
puts
}
With the Nokogiri library, the contents of the tiddlers could actually be modified and the wiki file saved again with the modifications but that requires a slightly more complex script.