Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help! Running subreddit image downloading script (~1 week into Unraid)

Featured Replies

Hello fellow data hoarders,

 

I'm 1 week into unraid, linux and command lines. I'm looking for a proper subreddit image & post ripper, for archival purposes, with as many features as possible.


Since installing unraid on my dedicated old PC, I've successfully setup my array, cache, data splitting & permissions to my liking.  My dockers: Plex, sonar, radarr, headphones, lazylibrarian & libresonic are finally running to my satisfaction.

 

However, I can't get good info on running scripts via a command prompt. I have found a few python-based scripts for downloading images from Reddit, and wanted to start out by trying this https://github.com/HoverHell/RedditImageGrab . The requirements: Python 2 or 3. So, I installed Python via NerdGui.


I created a new share user/mnt/scripts/, copied the extracted contents of the -master .zip with my Windows machine, and navigated to it via telnet using the cd command. The wiki got me this far, but I don't know what to do next.


Please help! 

 

What are my next steps to getting this thing to run? 

 

Are you using a better script to get this job done? I would love some kinda of working GUI to fill my needs.

 

Thank you so much for your help. 

 

Bryan

Have you tried (according to the link you supplied)

python nameOfScript whateverOptionsYouWant[code]

Edited by Squid

  • Author

/usr/bin/env: Ç python Ç : No such file or directory

 

I made it executeable via chmod +x but I am now getting this.

Assuming that you downloaded the file correctly (and it doesn't have any inherent errors in it), load the script into Notepad++, go to Edit, EOL Conversion and make sure that it's set to be Unix  (Alternatively, you can also do this the CA Config file editor -> set the Line endings to be Linux).  Save the file and try it all again.

  • Author

I must've downloaded it incorrectly. The entire contents of the redditdl.py script is as follows:

 

#!/usr/bin/env python
# coding: utf8
"""
Repo-root entry script.

Not named 'redditdownload.py' because it would horribly conflict with
the package name.
"""

from redditdownload.redditdownload import main


if __name__ == '__main__':
    main()
 

  • Author

I'm insanely uneducated on how to even get started. Is there a wiki page or some kind of tutorial for running python-based scripts or scripts in general within the unraid command prompt?

 

I hate being a begger but I did dozens and dozens of google searches and netted nothing that made sense to me.

  • Author

Traceback (most recent call last):
  File "redditdl.py", line 10, in <
    from redditdownload.redditdownl
  File "/mnt/user/scripts/reddit/re
    from redditdownload import *
  File "/mnt/user/scripts/reddit/re
    from .deviantart import process
  File "/mnt/user/scripts/reddit/re
    from bs4 import BeautifulSoup
ImportError: No module named bs4

 

Here's what I'm getting now when trying to python redditdl.py.

Might be helpful to post what command you're running as well as the output.

Sent from my LG-H815 using Tapatalk

  • Author

python redditdl.py mechanicalkeyboards mechanicalkeyboards --score 50

 

 

  • Author

Alright disregard this whole project. I'm going to create a different thread on something that I have a chance at actually getting to work :)

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.