mirror of
https://github.com/misiektoja/instagram_monitor.git
synced 2026-04-25 22:35:49 +03:00
[GH-ISSUE #35] Output dir feature to organize downloaded files into user-specific subdirectories #24
Labels
No labels
Stale
Stale
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/instagram_monitor#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @misiektoja on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/misiektoja/instagram_monitor/issues/35
Originally posted by @YouveGotMeowxy in #25
Let's keep the conversation going in the new issue.
It's a great idea, especially since we now have multi-target monitoring. I'll give it a shot in the near future. It shouldn't be too hard.
@misiektoja commented on GitHub (Jan 6, 2026):
Feature implemented and is available in the latest beta v2.1 on the dev branch: instagram_monitor.py
More info here: Output Directory
@YouveGotMeowxy commented on GitHub (Jan 7, 2026):
WEWT! Super fast, thank you! Can't wait to give her a shot!
@YouveGotMeowxy commented on GitHub (Jan 8, 2026):
Apologies, I'm not great with git. How do I get the beta? I installed normally using pip. I uninstalled what I had and then did a
pip install git+https://github.com/misiektoja/instagram_monitor.git@devto install the dev branch which shows this in the top barbut it shows this after it installs?
Successfully installed instagram_monitor-2.0.4@misiektoja commented on GitHub (Jan 8, 2026):
Ooops, I forgot to change version in
pyproject.tomlfile. I created a new branch for you (dev-for-YouveGotMeowxy) with this change (since I'm working on huge PR rebased against dev), try this:pip uninstall instagram-monitor -y && pip install git+https://github.com/misiektoja/instagram_monitor.git@dev-for-YouveGotMeowxy@YouveGotMeowxy commented on GitHub (Jan 9, 2026):
@misiektoja thank you! I installed it and ran it for a bit and notice some things (in no particular order):
Notice the 3rd line. My home path is
C:\Users\RE DACTED(with a space in it). So, it's trying to call my home path still for some reason, and also breaking due to it having a space in the name.Part of it MAY be from this line in config:
IMGCAT_PATH = "imgcat"I haven't looked into it, but maybe imgcat is in my home dir somewhere and since I didn't explicitly spell out the path to it and I'm letting the script find it, maybe the home folder path is being added (and also breaking due to the space in it).
BUT, even though the script IS creating all the folders properly in the output dir, it's not actually PLACING the goods into them as it is supposed to; they all stay empty. it's still dropping everything into my home folder as before.
Also, here's the info shown when it's first run; note the "Display Profile Pics" path:
Could we get individual logs per target as well, and place them into their respective
/logsubdir? It would be cleaner and more handy than 1 huge log for all targets, to pore through, with a real long log file name like the one shown above, which also has the potential to be a SUPER long name depending on how many more targets get added (imagine following say, 20 targets, lol). THeir respective/logdirs can contain the actual activity log for that target, plus it's .csv, and any other similar file.Is there a way to not also download the Post Thumbnail Image? I just like getting any videos, and have no use in my specific case for the thumbs. Btw, my pseduo-OCD also starts going nuts seeing the extension as ".jpeg" rather than ".jpg", LOL.
When running it, I'm seeing this, but don't know why?
That's everything so far I think. Don't mean to overload ya, just giving some user feedback! :)
@misiektoja commented on GitHub (Jan 12, 2026):
Thanks @YouveGotMeowxy, I appreciate all the remarks!
Take a look at the latest dev branch. All the issues should be sorted out now.
pip uninstall instagram-monitor -ypip install git+https://github.com/misiektoja/instagram_monitor.git@devI've improved Windows compatibility, so paths with spaces should no longer cause a headache.
Loved the idea of separating logs, so it's done!
Regarding the Post Thumbnail Image not downloading, check out the new
DOWNLOAD_THUMBNAILSconfig option.And just to tickle your OCD, I've renamed the extension from .jpeg to .jpg. Honestly, I have no clue what I was thinking when I did it the other way ;-)
As for that 401 Unauthorized error you're running into, it's an authentication rejection from Instagram on their internal top search endpoint. This is probably due to an expired session or a required browser challenge.
To minimize seeing this error, have a look at the info I put here: How to Prevent Getting Challenged and Account Suspension
Please test the new build and let me know if you have any feedback. Thanks a bunch!
@YouveGotMeowxy commented on GitHub (Jan 13, 2026):
first off, thank you so much for being so attentive! <3
Awesome! I fired it up and peeked into them; it seems like they still kinda show the info about the other targets, at least in the startup info; any way to remove all that so that the logs are just containing the info for the respective target? (Info about other targets in the log for an unrelated target is just kinda "noise"). lol
WEWT!
HAHAHA! THANK YOU! it's ok, I know that's one of those weird extensions that can be used multiple ways. I'm just so used to 3 letter extensions, and for some reason a bit of a minimalist, so unnecessary length, even 1 letter, triggers my undiagnosed OCD. :P I always have to go through each one and delete the extra letter, hjahah.
Oooh, also just a tip (OCD again! lololol):
See all those red arrows? (tabs), when using tabs instead of spaces the alignment of the "column" on the right gets knocked out of line. It looks like you wanted to keep them nicely lined up, but the tabs are screwing them up. I used to use tabs instead too but this always ended up driving me crazy, so I always change my IDE settings now to replace tabs with spaces when I hit the tab key. That way I still get the convenience of just tapping the tab key, but the predictability of spaces. :)
In my code I usually whip up a function to pass strings through that pads the right with spaces (or left, depending on where ya want the string) until the total string is X length. I use the total length of the longest string from the "left column" as the max length. This usually makes it super easy to line text up so it's easy on and pretty for the eyes. :D
Example:
@misiektoja commented on GitHub (Jan 16, 2026):
Thanks! I appreciate you taking the time to say that! 🤩
I checked the code and every log should contain user-specific information. The only exceptions are the beginning summary screen and the initial polling times for all users. I didn't want to create another file just for that as those things are somewhat common for all users.
🤣
You won this OCD round as well😄 I like it and implemented as suggested (
05c2bdb) ! Now the code does the on-demand/lazy directory creation to prevent filesystem clutter. Let me know if I missed sth.Thanks! Honestly, it was driving me crazy too that the log files weren't aligned. I initially thought it was just my text editor playing tricks on me, but turns out it was messing with everyone. Good news, though, I took a closer look and found a simple fix. I just rewrote the tabs to spaces on the fly in our Logger implementation (
759448a). Crisis averted, I hope ? ;-)All the changes are all set and loaded into the dev branch. Let me know if you have any feedback!
BTW, which terminal are you using on Windows to get imgcat working?
@YouveGotMeowxy commented on GitHub (Jan 16, 2026):
Awesome! I just installed and will test the changes! :D
Just asking, did you intend to keep these changes in the same version number? It says it uninstalled v2.1, and then installed v2.1 later. Just wanna make sure I got all the changes, lol.
In Windows I use "Windows Terminal" which really just is a tabbed interface for the regular windows command-line, but I also use it for WSL stuff as well.
For imgcat I ran the install command-lines it's GH repo said to use (scoop):
Then I can also just use UniGetUI to keep it updated.
@misiektoja commented on GitHub (Jan 17, 2026):
Yes, that is correct. I am still working on the dev branch on some features before release, but so far everything has landed in beta v2.1, so what you see is expected.
But does
imgcatactually display images in the terminal for you? When I use this Go version you mentioned (installed via scoop) on different terminals (I've tried Windows Terminal including Preview, Git Bash and WezTerm), I always get the following output when displaying the image:The same if I have imgcat enabled in instagram_monitor.
@tomballgithub commented on GitHub (Jan 17, 2026):
I am seeing the same error with imgcat after downloading and manually running the latest Windows binary.
It's occurring in Terminal 1.22 and Terminal Preview 1.24. Looks like 'sixel' support was added in 1.22 which is needed for Imgcat.
@YouveGotMeowxy commented on GitHub (Jan 17, 2026):
okies. Just didn't know if you versioned revisions as well (like 2.1.1 or something).
Now that you bring it up, I do get the same error showing in regular Windows command-line (via Windows Terminal):
I hadn't ever even tested it, I just installed as it instructed on it's repo and then was waiting to see what it would show while IM was running.
@misiektoja commented on GitHub (Jan 18, 2026):
Ok, thanks for the feedback. So, it means I'm not the only one with those issues. The only way I got it working under Windows was by using the WezTerm terminal and pip's imgcat (
pip install imgcat pillow).