Profile downloader: favorites list in the web UI; mark story filenames
- favorites.txt (git-ignored): profiles listed there show as buttons in the web UI that load the profile with one click - stories are saved as '<date> <id> story.<ext>' so they stand apart from posts
This commit is contained in:
1 parent
d12483d53c
commit
3dc4b0757f
5 files changed
+99
-9
No files matched your search
@@ -45,6 +45,21 @@ The server only listens on your own computer.
|
||||
The post list is cached for an hour. Tick **Fetch fresh list** to reload it (e.g. to see new
|
||||
posts or stories).
|
||||
|
||||
### Favorites
|
||||
|
||||
Put profiles you open often in `favorites.txt` in this folder, one per line (anything the
|
||||
profile box accepts: username, `@username`, profile URL, post link or secUid). Lines starting
|
||||
with `#` are ignored. They show up as buttons under the profile box; click one to load that
|
||||
profile. The file is read each time the page loads, so just reload after editing it.
|
||||
`favorites.txt` is git-ignored.
|
||||
|
||||
```
|
||||
# favorites.txt
|
||||
some.username
|
||||
@another.user
|
||||
MS4wLjABAAAA...
|
||||
```
|
||||
|
||||
## Command line
|
||||
|
||||
Downloads everything on the profile that isn't downloaded yet:
|
||||
@@ -74,6 +89,8 @@ downloads/profile/<username>/
|
||||
2026-11-08 16-53-54 7705844899718958356 02.jpg photo post, slide 2
|
||||
2026-11-08 16-53-54 7705844899718958356.mp3 photo post music
|
||||
2026-08-06 00-57-14 7670716372560727317.mp4 video
|
||||
2026-11-21 20-37-01 7710726500621782294 story.mp4 video story
|
||||
2026-11-21 20-37-01 7710726500621782295 01 story.jpg photo story, slide 1
|
||||
.archive.txt IDs of downloaded posts (these are skipped / marked "Downloaded")
|
||||
failed.txt links of posts that failed; removed again once they succeed
|
||||
.profile.json the profile's IDs, so it doesn't need to be looked up again
|
||||
@@ -119,5 +136,6 @@ Environment variables:
|
||||
| `static/index.html` | the web page |
|
||||
| `main.py` | command line |
|
||||
| `core.py` | listing, downloading, archive, retries — shared by both |
|
||||
| `favorites.txt` | your favorite profiles for the web UI (optional, git-ignored) |
|
||||
|
||||
Failed-link bookkeeping is shared with the single-post downloader (`../downloader.py`).
|
||||
Reference in new issue
Block a user