Check it out @ https://comic.m4xy.xyz
This project is a Comic Downloader, which allows users to download comics from a specified ReadAllComics. The downloaded comics are then converted into a PDF format for easy reading. The project uses Flask for the backend, Socket.IO for real-time updates, and APScheduler for scheduling tasks.
Here are the steps to host this project:
- Clone the repository from GitHub.
git clone https://github.com/m4xy07/ReadAllComics-to-PDF-Downloader.git
- Navigate to the project directory.
cd ReadAllComics-to-PDF-Downloader
- Install the required Python packages.
pip install -r requirements.txt
- Run the Flask application.
python main.py
- Open a web browser and navigate to
http://localhost:5000
to access the application.
Please note that this application is intended for local use. If you want to host it on a server, you may need to configure a production-ready server like Gunicorn or uWSGI and set up a reverse proxy with Nginx or Apache.
Also, ensure that you comply with the terms of service of the websites from which you are downloading comics.
This project is licensed under the MIT License.
This application is based on RAD. Special thanks to Nighmared
If you have anything you'd like to contribute feel free to open a pull request. 💖
To host the ReadAllComics-to-PDF-Downloader
project on an Ubuntu VPS, follow these steps:
- Connect to your VPS via SSH.
ssh username@your_vps_ip
- Update your package lists for upgrades and new package installations.
sudo apt-get update
- Install Git, Python, and pip.
sudo apt-get install git python3 python3-pip
- Clone the repository from GitHub.
git clone https://github.com/m4xy07/ReadAllComics-to-PDF-Downloader.git
- Navigate to the project directory.
cd ReadAllComics-to-PDF-Downloader
Note before the next step you may need to create a virtual env 1. apt install python3.11-venv
2. python3 -m venv venv
3. source venv/bin/activate
- Install the required Python packages.
pip3 install -r requirements.txt
- Install Gunicorn, a Python WSGI HTTP Server for UNIX.
pip3 install gunicorn
- Run the Flask application with Gunicorn.
gunicorn -w 4 main:app
-
Now, your application should be running on
http://your_vps_ip:8000
. -
To make the application accessible on port 80, install and configure Nginx.
sudo apt-get install nginx
- Remove the default Nginx configuration.
sudo rm /etc/nginx/sites-enabled/default
- Create a new Nginx configuration for your application.
sudo nano /etc/nginx/sites-available/readallcomics
- Add the following configuration, replacing
your_vps_ip
with your VPS's IP address.
server {
listen 80;
server_name server;
proxy_headers_hash_max_size 1024;
proxy_headers_hash_bucket_size 128;
location / {
include proxy_params;
proxy_pass http://127.0.0.1:5000;
}
location /socket.io {
include proxy_params;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:5000/socket.io;
}
sendfile on;
}
- Enable the new configuration.
sudo ln -s /etc/nginx/sites-available/readallcomics /etc/nginx/sites-enabled/
- Restart Nginx.
sudo service nginx restart
Now, your application should be accessible at http://your_vps_ip
.