Skip to content

This is a webpage app that allows users to enter a link to a comic and readallcomics.com and then get the PDF version of it.

License

Notifications You must be signed in to change notification settings

m4xy07/ReadAllComics-to-PDF-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website

Check it out @ https://comic.m4xy.xyz

ReadAllComics-to-PDF-Downloader

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.

Steps

Here are the steps to host this project:

  1. Clone the repository from GitHub.
git clone https://github.com/m4xy07/ReadAllComics-to-PDF-Downloader.git
  1. Navigate to the project directory.
cd ReadAllComics-to-PDF-Downloader
  1. Install the required Python packages.
pip install -r requirements.txt
  1. Run the Flask application.
python main.py
  1. 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.

License

This project is licensed under the MIT License.

Credits

This application is based on RAD. Special thanks to Nighmared

Improvements?

If you have anything you'd like to contribute feel free to open a pull request. 💖

Hosting

To host the ReadAllComics-to-PDF-Downloader project on an Ubuntu VPS, follow these steps:

  1. Connect to your VPS via SSH.
ssh username@your_vps_ip
  1. Update your package lists for upgrades and new package installations.
sudo apt-get update
  1. Install Git, Python, and pip.
sudo apt-get install git python3 python3-pip
  1. Clone the repository from GitHub.
git clone https://github.com/m4xy07/ReadAllComics-to-PDF-Downloader.git
  1. 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

  1. Install the required Python packages.
pip3 install -r requirements.txt
  1. Install Gunicorn, a Python WSGI HTTP Server for UNIX.
pip3 install gunicorn
  1. Run the Flask application with Gunicorn.
gunicorn -w 4 main:app
  1. Now, your application should be running on http://your_vps_ip:8000.

  2. To make the application accessible on port 80, install and configure Nginx.

sudo apt-get install nginx
  1. Remove the default Nginx configuration.
sudo rm /etc/nginx/sites-enabled/default
  1. Create a new Nginx configuration for your application.
sudo nano /etc/nginx/sites-available/readallcomics
  1. 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;
}
  1. Enable the new configuration.
sudo ln -s /etc/nginx/sites-available/readallcomics /etc/nginx/sites-enabled/
  1. Restart Nginx.
sudo service nginx restart

Now, your application should be accessible at http://your_vps_ip.

About

This is a webpage app that allows users to enter a link to a comic and readallcomics.com and then get the PDF version of it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published