No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-18 16:58:17 +00:00
lj_get_comments.py allow multiple urls at once 2021-11-21 17:49:08 +03:00
README.md Add canonical repository notice 2026-07-18 16:58:17 +00:00

The main repository of this project lives at https://code.pecheny.me/pecheny/lj_get_comments. All issues should be created there.

LJ Get Comments

An utility to download comments from a Livejournal page programmatically.

Installation

Install prerequisites: pip install beautifulsoup4 requests html2text before you run the program.

Usage

usage: lj_get_comments.py [-h] --lj_url LJ_URL [--output OUTPUT] [--only_root]
                          [--only_author ONLY_AUTHOR] [--download_images]

optional arguments:
  -h, --help            show this help message and exit
  --lj_url LJ_URL, -u LJ_URL
  --output OUTPUT, -o OUTPUT
                        override auto-generated filename
  --only_root, -or      leave only root comments, not replies to them.
  --only_author ONLY_AUTHOR, -oa ONLY_AUTHOR
                        leave only comments by specified author
  --download_images, -di
                        download linked images from comments

Example: python lj_get_comments.py -u 'https://monobor.livejournal.com/86642.html#comments' -or -oa monobor -di