[tw5] Re: Download a Tiddler Using Python/Bash

2018-05-25 Thread Matthew Lauber
Glad to help. If you do end up figuring out how to parse tiddlywiki wikitext in python/bash, please post about it to the group. On Thursday, May 24, 2018 at 10:43:30 AM UTC-4, j3d1H wrote: > > Matthew Lauber: Sorry for getting back to you so late, but this works > perfectly for what I need! T

[tw5] Re: Download a Tiddler Using Python/Bash

2018-05-24 Thread j3d1H
Matthew Lauber: Sorry for getting back to you so late, but this works perfectly for what I need! Thank you. On Friday, May 18, 2018 at 11:28:05 AM UTC-4, Matthew Lauber wrote: > > I don't think there's really anything else someone's made. You can try to > do HTML munging using BeautifulSoup in

Re: [tw5] Re: Download a Tiddler Using Python/Bash

2018-05-18 Thread Jeremy Ruston
If you end up writing something from scratch, you might want to refer to the fairly simple code that TW5 uses to extract the tiddlers from TWC/TW5 HTML files: https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/deserializers.js#L107-L133

[tw5] Re: Download a Tiddler Using Python/Bash

2018-05-18 Thread Matthew Lauber
I don't think there's really anything else someone's made. You can try to do HTML munging using BeautifulSoup in python. Should be able to use something like: with open("NameOfFile.html") as f: soup = BeautifulSoup(f.read(), "html.parser") soup.find_all('div', attrs={'title': 'NameOfTiddler

[tw5] Re: Download a Tiddler Using Python/Bash

2018-05-18 Thread Jed Carty
I haven't found any good server-side html parsing solutions. The node scripts are the only thing I have found that is at all reliable for pulling out tiddlers. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and st

[tw5] Re: Download a Tiddler Using Python/Bash

2018-05-18 Thread j3d1H
Jed: I would really rather not use node, it hasn't worked very well for me in the past. Any other possible solution? -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [tw5] Re: Download a Tiddler Using Python/Bash

2018-05-17 Thread Arlen Beiler
Well, the ginsu script would already be bash, or something similar. You need the node executable to run the script but you can call it from python or bash and then process the output. On Thu, May 17, 2018, 15:53 Jed Carty wrote: > You may be able to do it using node, there is a script called gin

[tw5] Re: Download a Tiddler Using Python/Bash

2018-05-17 Thread Jed Carty
You may be able to do it using node, there is a script called ginsu in the repo that splits a wiki into tiddlers but I am not sure how to convert it to use python or bash. https://github.com/Jermolene/TiddlyWiki5/blob/master/bin/ginsu.sh -- You received this message because you are subscribed