Skip to content

๐ŸŽธ API to scrape warp+ keys from telegram channel every hour written in FastAPI

License

Notifications You must be signed in to change notification settings

meower1/Warpgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Warpgen

Aggify

Warpgen is an API that generates Warp+ keys

๐Ÿ“š Overview

This API allows you to generate fully functioning warp+ subscription keys It does so by scraping the keys from t.me/warpplus every hour It also comes with rate limitting to prevent spam/abuse

๐ŸŽฏ Endpoints

There are two available endpoints to use:

Method Endpoint Description
GET "/" Access the WebUI
GET "/api" Primary endpoint to recieve the key as plain text.

๐Ÿ’ป Development

The development process is fairly simple. All you gotta do is run the dev docker compose file using the following command:

docker compose --file docker-compose-dev.yml up

โ˜๏ธ Deployment

First you must get an ssl certificate. I'll be using acme here. Run the following commands in the given order. Make sure to replace your domain in the commands

curl https://get.acme.sh/ | sh

~/.acme.sh/acme.sh --set-default-ca --server letsencrypt

~/.acme.sh/acme.sh --register-account -m your@gmail.com

~/.acme.sh/acme.sh --issue -d host.mydomain.com --standalone

After running the given commands your certificate files will be in /etc/letsencrypt/live/host.mydomain.com

You need the following files: fullchain.pem, privkey.pem, options-ssl-nginx.conf & ssl-dhparams.pem

Carefully copy the given files into the nginx directory of the project.

cd nginx/
cp /etc/letsencrypt/options-ssl-nginx.conf .
cp /etc/letsencrypt/ssl-dhparams.pem .
cp /etc/letsencrypt/live/host.mydomain.com/fullchain.pem .
cp /etc/letsencrypt/live/host.mydomain.com/privkey.pem .

Modify the nginx/Dockerfile to match the file names.

nginx/Dockerfile:

FROM nginx

RUN apt-get update && \
    apt-get install -y curl

COPY nginx.conf /etc/nginx/nginx.conf
COPY fullchain.pem /etc/letsencrypt/host.mydomain.com/fullchain.cer # Change to your own domain/format
COPY privkey.pem /etc/letsencrypt/host.mydomain.com/privkey.pem # Change to your own domain/format
COPY options-ssl-nginx.conf /etc/letsencrypt/options-ssl-nginx.conf
COPY ssl-dhparams.pem /etc/letsencrypt/ssl-dhparams.pem

And after following the given steps run the docker compose file to deploy your project! ๐ŸŽ‰๐ŸŽ‰

docker compose up -d

๐ŸŒŸ Contribution

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change

Credits:

About

๐ŸŽธ API to scrape warp+ keys from telegram channel every hour written in FastAPI

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published