July 8, 20178 yr 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
July 8, 20178 yr Have you tried (according to the link you supplied) python nameOfScript whateverOptionsYouWant[code] Edited July 8, 20178 yr by Squid
July 8, 20178 yr Author /usr/bin/env: Ç python Ç : No such file or directory I made it executeable via chmod +x but I am now getting this.
July 9, 20178 yr 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.
July 9, 20178 yr 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()
July 9, 20178 yr 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.
July 9, 20178 yr 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.
July 9, 20178 yr Might be helpful to post what command you're running as well as the output.Sent from my LG-H815 using Tapatalk
July 9, 20178 yr 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.