readcomiconline domain switch

Quick search and replace for:-

ReadComicOnlineTo ->ReadComicOnlineli
Readcomiconline.to -> Readcomiconline.li
master
Adam Blundell 2021-04-15 12:07:25 +01:00
parent 8ddaab8ecc
commit 339b665fcb
10 changed files with 52 additions and 50 deletions

View File

@ -26,5 +26,5 @@ comic_dl\sites\omgBeauPeep.py
comic_dl\sites\rawSenManga.py
comic_dl\sites\readComicBooksOnline.py
comic_dl\sites\readComicsWebsite.py
comic_dl\sites\readcomicOnlineto.py
comic_dl\sites\readcomicOnlineli.py
comic_dl\sites\stripUtopia.py

View File

@ -5,7 +5,7 @@ Comic-dl is a command line tool to download Comics and Manga from various Manga
If you're looking for an application, or a UI for this, please move to : [CoManga](https://github.com/Xonshiz/CoManga)
> Don't overuse this script. Support the developers of those websites by disabling your adblock on their site.
> Don't overuse this script. Support the developers of those websites by disabling your adblock on their site.
>Advertisments pay for the website servers.
> Searching and downloading that manga is supported via MangaEden's API : http://www.mangaeden.com/api/
@ -68,7 +68,7 @@ sudo apt-get install libfreetype6 libfreetype6-dev
sudo apt-get install libfontconfig1 libfontconfig1-dev
```
Grab the suitable `tar.bz2` file from this [link](http://phantomjs.org/download.html)
Extract the contents of this `tar.bz2` file you just downloaded. Open a terminal and follow the commands.
Extract the contents of this `tar.bz2` file you just downloaded. Open a terminal and follow the commands.
* Don't forget the change the name of the file(s) mentioned here with the ones that you downloaded.There might be a newer version when you download
```
cd /Name/of_the/directory/that/contains/the/tar_bz2/file
@ -126,7 +126,7 @@ and then, execute with this :
`./__main__.py`
### Docker
### Docker
With docker you can get the whole dependencies enclosed in a container and use the `comic_dl` from your system.
@ -134,7 +134,7 @@ You need an up and running Docker client running, follow the [Docker Documentati
A minimal example is here, you can change each step as you wish.
1. Clone this repo with `git clone [REPOSITORY URL.git]`
1. Clone this repo with `git clone [REPOSITORY URL.git]`
2. Build the image and give a name and a tag in the format `name:tag`. Here we are using `python:3.6.5-stretch` as base image, hence he tag.
@ -165,9 +165,9 @@ usage: comicdl [-h] [--version] [-s SORTING] [-a] [-c]
This script supports both, Python 3 and Python 2.
## Windows Binary
It is recommended that windows users use this binary to save both, your head and time from installing all the dependencies.
It is recommended that windows users use this binary to save both, your head and time from installing all the dependencies.
You need to download and install [Node.js](https://nodejs.org/en/) and make sure it is in your Windows path (watch out for the tick box during install).
You need to download and install [Node.js](https://nodejs.org/en/) and make sure it is in your Windows path (watch out for the tick box during install).
You also need to download [PhantomJS](http://phantomjs.org/download.html) and keep it in the same directory as that of this windows binary file or you need to have PhantomJS in your path. PhantomJS is required for some websites, which you can check in the [list of supported sites](https://github.com/Xonshiz/comic-dl/blob/master/Supported_Sites.md).
@ -199,14 +199,14 @@ Currently, the script supports these arguments :
-cid, --chapter-id Takes the Chapter ID to list all the chapters in a Manga.
-fd, --force-download Forces download of chapters, when using comic-dl's search function.
-pid, --page-id Takes the Page ID to download a particular "chapter number" of a manga.
--comic Add this after -i if you are inputting a comic id or the EXACT comic name.
--comic Add this after -i if you are inputting a comic id or the EXACT comic name.
[ Ex : -i "Deadpool Classic" --comic ]
-comic-search, --search-comic Searches for a comic through the scraped data from ReadComicOnline.to
-comic-search, --search-comic Searches for a comic through the scraped data from ReadComicOnline.to
[ Ex : -comic-search "Deadpool" ]
-comic-info, --comic-info Lists all the information about the given comic (argument can be either comic id or the exact comic name).
[ Ex : -comic-info "Deadpool Classic" ] or [ Ex : -comic-info 3865 ]
--update Updates the comic database for the given argument.
[ Ex: --update "Deadpool Classic" ] or [ Ex: --update "https://readcomiconline.to/Comic/Deadpool-Classic" ]
[ Ex: --update "Deadpool Classic" ] or [ Ex: --update "https://readcomiconline.li/Comic/Deadpool-Classic" ]
```
## Language Codes:
@ -244,7 +244,7 @@ Language Code --> Language
26 --> Esperanto
27 --> Swedish
28 --> Lithuanian
29 --> Other
29 --> Other
```
#### Note :
@ -368,7 +368,7 @@ To generate the config file run the comand below and follow the instructions
```
python __main__.py --config
```
or with the binary
or with the binary
```
comic_dl.exe --config
@ -376,12 +376,12 @@ comic_dl.exe --config
This commands supports the creation of the config file, the addition and remove of series and the edition of the common download configuration.
Once the config file is generated you can download automatically the new chapters available for your selected comics by running the command bellow. The command will automatically update the config file to the lastest chapter downloaded, so in the next run it'll download just the new ones.
Once the config file is generated you can download automatically the new chapters available for your selected comics by running the command bellow. The command will automatically update the config file to the lastest chapter downloaded, so in the next run it'll download just the new ones.
```
python __main__.py --auto
```
or with the binary
or with the binary
```
comic_dl.exe --auto
@ -417,7 +417,7 @@ If you don't include the verbose log, there are chances it'll take time to fix t
P.S : Just attaching a screenshot will NOT tell or anyone else what happened behind the scenes. So, Error Log is mandatory.
### Suggesting A Feature
If you're here to make suggestions, please follow the basic syntax to post a request :

View File

@ -5,7 +5,8 @@
~* [GoManga](http://gomanga.co/)~
~* [Batoto](http://bato.to/)~
* [Comic Naver](http://comic.naver.com/index.nhn)
* [Readcomiconline.to](http://readcomiconline.to/)
* [Readcomiconline.li](http://readcomiconline.li/)
~* [Readcomiconline.to](http://readcomiconline.to/)~
* [mangahere.co](http://mangahere.co/)
* [raw.senmanga](http://raw.senmanga.com/)
* [omgbeaupeep.com](http://www.omgbeaupeep.com/)
@ -18,4 +19,4 @@
* [hqbr.com.br](https://hqbr.com.br/home)
* [comicextra.com](http://www.comicextra.com)
* [readcomics.io](https://www.readcomics.io/)
* [otakusmash.com](http://www.otakusmash.com/)
* [otakusmash.com](http://www.otakusmash.com/)

View File

@ -1,23 +1,23 @@
{
"download_directory": "dire",
"download_directory": "dire",
"comics": {
"http://readcomiconline.to/Comic/Deadpool-2016": {
"url": "http://readcomiconline.to/Comic/Deadpool-2016",
"username": "None",
"comic_language": "0",
"password": "None",
"http://readcomiconline.li/Comic/Deadpool-2016": {
"url": "http://readcomiconline.li/Comic/Deadpool-2016",
"username": "None",
"comic_language": "0",
"password": "None",
"next": 39
},
"http://readcomicbooksonline.net/deadpool-vs-old-man-logan": {
"url": "http://readcomicbooksonline.net/deadpool-vs-old-man-logan",
"username": "None",
"comic_language": "0",
"password": "None",
"url": "http://readcomicbooksonline.net/deadpool-vs-old-man-logan",
"username": "None",
"comic_language": "0",
"password": "None",
"next": 0
}
},
"conversion": "cbz",
"keep": "True",
"sorting_order": "ascending",
},
"conversion": "cbz",
"keep": "True",
"sorting_order": "ascending",
"image_quality": "Best"
}
}

View File

@ -7,7 +7,7 @@ except ImportError:
from urlparse import urlparse
import logging
from sites import foolSlide
from sites import readcomicOnlineto
from sites import readcomicOnlineli
from sites import comicNaver
from sites import mangaHere
from sites import rawSenManga
@ -92,7 +92,7 @@ class Honcho(object):
chapter_range=chapter_range, conversion=kwargs.get("conversion"),
keep_files=kwargs.get("keep_files"))
return 0
elif domain in ["www.readcomiconline.to", "readcomiconline.to"]:
elif domain in ["www.readcomiconline.li", "readcomiconline.li"]:
readcomicOnlineto.ReadComicOnlineTo(manga_url=comic_url, logger=logging,
current_directory=current_directory, sorting_order=sorting,
log_flag=log_flag, download_directory=download_directory,

View File

@ -10,7 +10,7 @@ from datetime import date
class RCOUpdater():
def __init__ (self, link=None, name=None):
self.BASE = "https://readcomiconline.to/Comic/"
self.BASE = "https://readcomiconline.li/Comic/"
self.link = link
if name:
@ -27,7 +27,7 @@ class RCOUpdater():
print("Download the data from {}".format("https://drive.google.com/open?id=1eOjwOQx_LHericcowyBRNIJtZZGMKlp6"))
print("And paste it inside the comic-dl/comic_dl directory")
sys.exit()
if self.link:
try:
soup = BeautifulSoup(
@ -88,14 +88,14 @@ class RCOUpdater():
self.data["last"] = {
"no": self.data["comics"][-1]["no"], "name": self.data["comics"][-1]["name"], "dateAdded": date.today().strftime("%d/%m/%Y")
}
with open("rco-data.json", "w") as out:
json.dump(self.data, out, indent=2)
print("Database updated successfully...")
except Exception as e:
print("The link is not available, perhaps you provided an invalid link or name.")
sys.exit()
sys.exit()
def getLastId(self, name):
return self.data["last"]["no"]
@ -106,8 +106,8 @@ class RCOUpdater():
def alreadyExists(self, name):
for datum in self.data["comics"]:
if name == datum["name"]:
return datum["no"]
return datum["no"]
return False
def getGenre(self, el):

View File

@ -7,7 +7,7 @@ import os
import logging
class ReadComicOnlineTo(object):
class ReadComicOnlineLi(object):
def __init__(self, manga_url, download_directory, chapter_range, **kwargs):
current_directory = kwargs.get("current_directory")
@ -65,7 +65,7 @@ class ReadComicOnlineTo(object):
if str(self.image_quality).lower().strip() in ["low", "worst", "bad", "cancer", "mobile"]:
image_link = image_link.replace("=s0", "=s1600").replace("/s0", "/s1600")
current_chapter += 1
file_name = str(globalFunctions.GlobalFunctions().prepend_zeroes(current_chapter, len(img_list))) + ".jpg"
@ -74,7 +74,7 @@ class ReadComicOnlineTo(object):
globalFunctions.GlobalFunctions().multithread_download(chapter_number, comic_name, comic_url, directory_path,
file_names, links, self.logging)
globalFunctions.GlobalFunctions().conversion(directory_path, conversion, keep_files, comic_name,
chapter_number)
@ -101,7 +101,7 @@ class ReadComicOnlineTo(object):
for a in x:
all_links.append(str(a['href']).strip())
"""Readcomiconline.to shows the chapters in the Descending order. The 1st chapter is at the bottom, hence, at
"""Readcomiconline.li shows the chapters in the Descending order. The 1st chapter is at the bottom, hence, at
the end of the list. So, we'll reverse the list, to perform the ranging functionality properly.
This is a fix for issues like #74.
"""
@ -137,7 +137,7 @@ class ReadComicOnlineTo(object):
if str(sorting).lower() in ['new', 'desc', 'descending', 'latest']:
for chap_link in all_links:
chap_link = "http://readcomiconline.to" + chap_link
chap_link = "http://readcomiconline.li" + chap_link
try:
self.single_chapter(comic_url=chap_link, comic_name=comic_name, download_directory=download_directory,
conversion=conversion, keep_files=keep_files)

View File

@ -5,7 +5,8 @@
~* [GoManga](http://gomanga.co/)~
~* [Batoto](http://bato.to/)~
* [Comic Naver](http://comic.naver.com/index.nhn)
* [Readcomiconline.to](http://readcomiconline.to/)
* [Readcomiconline.li](http://readcomiconline.li/)
~* [Readcomiconline.to](http://readcomiconline.to/)~
* [mangahere.co](http://mangahere.co/)
* [raw.senmanga](http://raw.senmanga.com/)
* [omgbeaupeep.com](http://www.omgbeaupeep.com/)
@ -18,4 +19,4 @@
* [hqbr.com.br](https://hqbr.com.br/home)
* [comicextra.com](http://www.comicextra.com)
* [readcomics.io](https://www.readcomics.io/)
* [otakusmash.com](http://www.otakusmash.com/)
* [otakusmash.com](http://www.otakusmash.com/)

View File

@ -25,7 +25,7 @@
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<div class="text-center" style="padding-top: 5%;padding-bottom: 5%;">
<h1 style="color: #ffffff;"><a href="http://readcomiconline.to/">Readcomicsonline.to</a></h1>
<h1 style="color: #ffffff;"><a href="http://readcomiconline.li/">Readcomicsonline.li</a></h1>
</div>
</div>
<div class="carousel-item">
@ -125,4 +125,4 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
</body>
</html>
</html>

View File

@ -46,7 +46,7 @@ setup(
},
license="MIT Licence",
zip_safe=False,
keywords = ['comic-dl', 'cli', 'comic downloader','manga downloader','mangafox','batoto','kissmanga','readcomiconline.to'],
keywords = ['comic-dl', 'cli', 'comic downloader','manga downloader','mangafox','batoto','kissmanga','readcomiconline.li'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',