Simple Manga Downloader 1.16.0

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Simple Manga Downloader 1.16.0

Post#1 by Rava » 09 Jan 2022, 19:05

I try to get simple-manga-downloader-1.16.0 ( using simple-manga-downloader-1.16.0.tar.gz - md5sum aae5a64ad477b1d7b0a2c4f1b296b156 ) from https://pypi.org/project/simple-manga-downloader/ to work, but I fail.
The source site says using a requirements.txt that should install the needed requirements, but this requirements.txt doesn't exist in this version. :(

chmod +r SMD.py in simple-manga-downloader-1.16.0/simple_manga_downloader like the site uses as a 2nd way of getting it done and then using python also fails:

Code: Select all

root@porteus:/mybin/linux/python/simple-manga-downloader-1.16.0/simple_manga_downloader# ./SMD.py 
Traceback (most recent call last):
  File "/mybin/linux/python/simple-manga-downloader-1.16.0/simple_manga_downloader/./SMD.py", line 8, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
The method of using pip as described on the web site also fails.
Installing using pip will handle the requirements automatically. I would also recommend using pipx instead of just pip.
Using pip3-19.1.1-x86_64-alldesktops.xzm (md5sum fc9df79b9e8f98c6fdadcab6c3a6dd27) :

Code: Select all

root@porteus:/mybin/linux/python# pip install simple-manga-downloader
Traceback (most recent call last):
  File "/usr/bin/pip", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'
Do I need to activate more than just pip3-19.1.1-x86_64-alldesktops.xzm for pip to be fully functional?
I also have 2240512 bytes large python-pip-21.3.1-x86_64-2.xzm (md5sum 946d93afa6785ba0120a4ec643776627 of source package python-pip-21.3.1-x86_64-2.txz)

But I do not recall if activating both is a good or a bad idea, sorry.

Python is really not my forte. :( Any help appreciated.
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Simple Manga Downloader 1.16.0

Post#2 by beny » 09 Jan 2022, 20:46

hi Rava python-pip is part of slackware current install it first...with the changes directory on for the pip installer deps

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Simple Manga Downloader 1.16.0

Post#3 by Rava » 09 Jan 2022, 21:14

^
As in: first I deactivate pip3-19.1.1-x86_64-alldesktops.xzm
Then I activate python-pip-21.3.1-x86_64-2.xzm
and last I activate pip3-19.1.1-x86_64-alldesktops.xzm
?
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Simple Manga Downloader 1.16.0

Post#4 by beny » 09 Jan 2022, 22:05

root@porteus:/home/guest# pip install simple_manga_downloader
Collecting simple_manga_downloader
Downloading simple_manga_downloader-1.16.0-py3-none-any.whl (37 kB)
Collecting beautifulsoup4~=4.9
Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 1.7 MB/s
Requirement already satisfied: urllib3>=1.26.5 in /usr/lib64/python3.9/site-packages (from simple_manga_downloader) (1.26.7)
Requirement already satisfied: requests~=2.23 in /usr/lib64/python3.9/site-packages (from simple_manga_downloader) (2.26.0)
Collecting soupsieve>1.2
Downloading soupsieve-2.3.1-py3-none-any.whl (37 kB)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib64/python3.9/site-packages (from requests~=2.23->simple_manga_downloader) (2021.10.8)
Requirement already satisfied: charset_normalizer~=2.0.0 in /usr/lib64/python3.9/site-packages (from requests~=2.23->simple_manga_downloader) (2.0.9)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib64/python3.9/site-packages (from requests~=2.23->simple_manga_downloader) (3.3)
Installing collected packages: soupsieve, beautifulsoup4, simple-manga-downloader
Successfully installed beautifulsoup4-4.10.0 simple-manga-downloader-1.16.0 soupsieve-2.3.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
hi i have done this with root account due to guest failure

guest@porteus:~$ smd
usage: smd [-h] [-c PATH/TO/CONFIG] mode ...
smd: error: the following arguments are required: mode
guest@porteus:~$

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Simple Manga Downloader 1.16.0

Post#5 by Rava » 09 Jan 2022, 22:19

beny, can you upload it as module please?
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Simple Manga Downloader 1.16.0

Post#6 by beny » 09 Jan 2022, 22:32

hi Rava with the pip installer packages are in this directory /usr/lib64/python3.9/site-packages/ if slackbuild exist we can make a packages,but with pip i don't know how..

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Simple Manga Downloader 1.16.0

Post#7 by beny » 09 Jan 2022, 22:54

well you can try with this:
guest@porteus:~$ pip download simple_manga_downloader
Collecting simple_manga_downloader
Downloading simple_manga_downloader-1.16.0-py3-none-any.whl (37 kB)
Collecting urllib3>=1.26.5
Downloading urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
|████████████████████████████████| 138 kB 6.0 MB/s
Collecting requests~=2.23
Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
|████████████████████████████████| 63 kB 4.7 MB/s
Collecting beautifulsoup4~=4.9
Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 7.4 MB/s
Collecting soupsieve>1.2
Downloading soupsieve-2.3.1-py3-none-any.whl (37 kB)
Collecting charset-normalizer~=2.0.0
Downloading charset_normalizer-2.0.10-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Downloading idna-3.3-py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 7.7 MB/s
Collecting certifi>=2017.4.17
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
|████████████████████████████████| 149 kB 8.4 MB/s
Saved ./simple_manga_downloader-1.16.0-py3-none-any.whl
Saved ./beautifulsoup4-4.10.0-py3-none-any.whl
Saved ./requests-2.27.1-py2.py3-none-any.whl
Saved ./certifi-2021.10.8-py2.py3-none-any.whl
Saved ./charset_normalizer-2.0.10-py3-none-any.whl
Saved ./idna-3.3-py3-none-any.whl
Saved ./soupsieve-2.3.1-py3-none-any.whl
Saved ./urllib3-1.26.8-py2.py3-none-any.whl
Successfully downloaded simple-manga-downloader beautifulsoup4 requests certifi charset-normalizer idna soupsieve urllib3
guest@porteus:~$
downloaded into the guest user directory, extract into a directory and dir2xzm maybe i don't know if work or not

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Simple Manga Downloader 1.16.0

Post#8 by beny » 10 Jan 2022, 18:26

hi Rava no luck...i have done a package of simple manga downloader the files are all into the python3.9 site-packages but the software is missing so i think that python pip have a different way to install python deps.. sorry..

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Simple Manga Downloader 1.16.0

Post#9 by Rava » 10 Jan 2022, 20:05

beny wrote:
10 Jan 2022, 18:26
hi Rava no luck...i have done a package of simple manga downloader the files are all into the python3.9 site-packages but the software is missing so i think that python pip have a different way to install python deps.. sorry..
That's a bummer. While I have quicker internet here at my 1 1/2 weeks of work abroad, I have much less free time trying to get software to run.
Seems it will have to wait for a week and with my slower internet at home, but then I can make the needed free time happen.

Thanks for trying :friends: , I will follow your approach.

changes-time did not save what was created by the setup process?
But could be that some stuff got put into e.g. /home or /root and that is excluded by default.

Maybe instead my one-liner is of help to you:
Go into / and use the appropriate date and time info at the very end of the one liner.
As example it is set to find only things with the change date and time of "2021-01-24 08:00"

Code: Select all

# but exclude "cache| .$| ..$"
find . -mtime 0 2>/dev/null | xargs ls -oad --color=auto --time-style=long-iso 2>&1 |grep -vE "cache| .$| ..$"|grep "2021-01-24 08:00"
When you want to find e.g. date "2021-01-24" and time "08:00 to 08:03" you type instead:

Code: Select all

find . -mtime 0 2>/dev/null | xargs ls -oad --color=auto --time-style=long-iso 2>&1 |grep -vE "cache| .$| ..$"|grep "2021-01-24 08:0[0-3]"
Instead of the initial "find ." you would have to use "find /" when you are not in /

And you must be root or else folders and files only accessible for root will not be found even when they match the date and timer specified.

But remember, my one-liner not saves anything, it just lists the folders and files specified by the date + time parameter in the last grep command. You then have a listing of files and folders and it is up to you to do e.g. copying of files and folders into the same path structure of the planned Porteus module.

HTH. :)
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Simple Manga Downloader 1.16.0

Post#10 by Rava » 11 Jan 2022, 02:21

beny, I forgot to ask:

aside from being unable to create a working module, was your building a working Simple Manga Downloader 1.16.0 as described above in quoting what the console gave as info successful?
As in: could you start SMD, and did it actually download some random test manga?
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Simple Manga Downloader 1.16.0

Post#11 by beny » 11 Jan 2022, 12:38

hi Rava this link :https://github.com/Kanjirito/simple-manga-downloader well you have a different way to use it,my module do not work, no SMD at all but in the changes directory i have the SMD working,try to use the git software, you have to do a SMD config with the ./manga directory to download the chapters follow the steps the four link into the github page you need to grab the web link for the downloader action and yes python i don't undestand it at all.
Last edited by beny on 11 Jan 2022, 16:36, edited 1 time in total.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Simple Manga Downloader 1.16.0

Post#12 by Rava » 11 Jan 2022, 13:04

beny wrote:
11 Jan 2022, 12:38
my module do not work, no SMD at all but in the changes directory i have the SMD working
Then it should be copied from the changes directory, no?

Anyhow, I try creating a module in approx a week. Thanks for the help.
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Simple Manga Downloader 1.16.0

Post#13 by beny » 11 Jan 2022, 13:16

guest account without changes: when you have downloaded the git hub zip the python deps are installed here /home/guest/.local/lib/python3.9/site-packages/ and you have to do a SMD config and a manga directory:
guest@porteus:~/Downloads/simple-manga-downloader-master$ ./SMD.py down https://www.mangatown.com/manga/shokugeki_no_soma/

------------------------
Getting 1 manga
------------------------

----------------------------
Checking "Shokugeki no Soma"
----------------------------

Getting info about 400 matching chapter(s)
------------------------------------------
Chapter 0
Chapter 1
Chapter 1.5
Chapter 2
Chapter 3
Chapter 4
Chapter 4.5
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 14.5
Chapter 15
Chapter 16
Chapter 16.5
Chapter 17
Chapter 18
Chapter 19
Chapter 20
Chapter 21
Chapter 22
Chapter 23
Chapter 24
Chapter 25
Chapter 26
Chapter 27
Chapter 28
Chapter 29
Chapter 30
Chapter 31
Chapter 32
Chapter 33
Chapter 34
Chapter 35
Chapter 35.5
Chapter 36
Chapter 37
Chapter 38
Chapter 39
Chapter 40
Chapter 41
Chapter 42
Chapter 43
Chapter 44
Chapter 45
Chapter 46
Chapter 47
Chapter 48
Chapter 49
Chapter 50
Chapter 51
Chapter 52
Chapter 52.5
but i don't know where the manga is downloaded,but work seem this is without install,on fly action.well at first glance is created an index after this you can download the chapters into the manga directory work in progress......

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Simple Manga Downloader 1.16.0

Post#14 by beny » 11 Jan 2022, 16:34

hi,all work you need a directory in /home/guest/.config/SMD//SMD_conf.json:
{
"manga_directory": "/home/guest/Manga",
"covers": false,
"lang_code": "en",
"page_download_timeout": 5,
"data_saver": false,
"character_replacement_rules": {
"/": " ",
"\\": " ",
":": " ",
".": " ",
"<": " ",
">": " ",
"?": " ",
"*": " ",
"|": " "
},
"tracking": {}
}
the SMD.conf.json above and the directory manga, start a terminal into the simple-manga-directory with this:./SMD.py [mode] [arguments] and first make a check to files and after ask you if you want to download it,you need the manga net adress to do this.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Simple Manga Downloader 1.16.0

Post#15 by Rava » 11 Jan 2022, 20:03

beny wrote:
11 Jan 2022, 16:34
"manga_directory": "/home/guest/Manga",
I presume that's the folder where manga(s) will get downloaded?

One might want to direct that to a folder on the local hard drive, even when you use a save-changes container, that container could get full easily when you start downloading some complete mangas, and that is not the purpose of the save-changes container, to keep lots of internet downloads.

Also, your ramdisk on / can get full and then programs start to malfunction when they have no space saving settings in /home or /root or wherever they want that is saved on the / ramdisk..

And when you not use a save-changes container your ramdisk on / will still get full, and when you restart and forgot to manually save any downloaded manga, they would be lost.

So, presuming /mnt/sda1/ebook/manga/ is a valid folder on your hard drive and the place you want to store the SMD downloads, use this instead:

Code: Select all

"manga_directory": "/mnt/sda1/ebook/manga/",
beny please do correct me if my assumptions above that "manga_directory" is the place where SMD downloads its stuff was wrong.
Cheers!
Yours Rava

Post Reply