aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix try except pass thingy.HEADmainla-ninpre2021-07-171-2/+3
|
* add short variants of command line flagsla-ninpre2021-07-161-4/+4
|
* add support for other file types (to be improved)la-ninpre2021-07-146-11/+718
| | | | | | | | currently images that were sent as files are supported, but their files land in `files` directory. text file and additional image used for test are stored as symlinks now, because i don't want them to consume too much space.
* add testcase for utf-8 stringsla-ninpre2021-07-121-14/+22
|
* Merge pull request #2 from progxaker/mainLev Brekalov2021-07-121-3/+2
|\ | | | | Add UTF-8 support
| * Add UTF-8 supportEduard Mielieshkin2021-07-091-3/+2
|/
* update readmela-ninpre2020-12-102-14/+15
| | | | oops, forgot to change name of script there
* add argparsela-ninpre2020-12-101-45/+111
| | | | and do some refactoring
* remove generated filesla-ninpre2020-12-1013-132/+3
|
* make a renamela-ninpre2020-11-262-2/+10
| | | | notice repo name also changed
* add licensela-ninpre2020-11-172-0/+32
|
* add readmela-ninpre2020-11-173-7/+43
| | | | Some raw and crappy documentation.
* fix formatted text parsingla-ninpre2020-11-1613-41/+171
| | | | | | | | | earlier, situations when there were strings like 'bold\ntext\n' that needed to be treated as bold text were converted in a wrong way (e.g. like '**bold\ntext\n**', which is breaking markup because of newline characters before closing asterisks), but now it's kind of fixed. also there's now support for emails and <pre> blocks.
* add testsla-ninpre2020-11-125-15/+243
| | | | | | | | | | | | | | | | | | | i've found some issues with formatted text, this could be seen in output (which is not included now). there are some complications with parsing newline characters, but i'll fix it later. also script is now usable like command-line application. you can specify the directory in which source files are located. to make some tests you need to run $ python parse.py tests this will create directory tests/formatted_posts, where markdown posts will be populated. if directory is not specified, it assumes that script is in the source folder. if needed json file could not be found, it exits with code 1.
* add option to reassign directories for mediala-ninpre2020-11-121-9/+19
| | | | | | now it's done through a variables photo_dir and media_dir, these should be filled in before running and they are intended to fit your specific setup. e.g. mine uses /assets folder for such file storage.
* add raw parserla-ninpre2020-11-111-0/+177
handles: - photo - text with bold, italic, underlined, stroke style and with links. - audio files not handles: - tags - replies - forwarded messages