Coder Social home page Coder Social logo

captmicr0 / abtorrents-proxy Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 68 KB

docker container for automating abtorrents PM checking and cardigann definition that allows username/password login for Prowlarr

Dockerfile 3.84% Python 95.39% Shell 0.77%

abtorrents-proxy's Introduction

ABTorrents Proxy

ABTorrents Proxy is a Python script that acts as a proxy server, providing an HTTP server to forward requests to an ABTorrents Selenium browser instance. It is designed to make the Cardigan custom definition able to handle logins and search ABTorrents via the Selenium instance.

Features

  • HTTP server forwarding requests to an ABTorrents Selenium browser instance.
  • Handles logins and searches on ABTorrents.
  • Uses Selenium and ChromeDriver for browser automation.

Prerequisites

  • Docker

Configuration

Set the following environment variables before running the script:

ABT_URL: ABTorrents URL (not required, defaults to https://abtorrents.me/)
ABT_PROXYPORT: Proxy port (not required, defaults to default: 8080)
ABT_USERNAME: ABTorrents username (not required)
ABT_PASSWORD: ABTorrents password (not required)

Docker container build

Local build:

git clone https://github.com/captmicr0/abtorrents-proxy
cd abtorrents-proxy
docker build -t captmicr0/abtorrents-proxy:latest .

Docker container usage

Command line:

docker run ghcr.io/captmicr0/abtorrents-proxy:latest

Docker-Compose:

version: "3.7"
services:
  ###--- ABTORRENTS-PROXY ---------------------------------------------------###
  abtorrents-proxy:
    image: ghcr.io/captmicr0/abtorrents-proxy:latest
    container_name: abtorrents-proxy
    volumes:
      # TIMEZONE
      - /etc/localtime:/etc/localtime:ro
    ports:
     - 8080:8080
    restart: always

The proxy server and ABTProwlarrHandler server will start. The proxy will overwrite requests to ABTorrents domain, forwarding them to the ABTProwlarrServer instance. The ABTProwlarrServer instance will request the page from the ABTorrents instance which will return the webpages source. It checks for unread PM's after login and before each request made by the ABTProwlarrServer instance, if any exist it will open them which marks them as read, and resume returning the webpages source.

Prowlarr configuration

Install abtorrents-proxy.yml in Prowlarr by adding it to the Definitions/Custom folder. Add a new proxy in prowlarr, entering the docker container hostname or IP and port (default port 8080). Add a new indexer in prowlarr, chosing abtorrents-proxy, and entering your username and password. Configure the indexer to use the proxy you added. Test and save the indexer config.

License

This project is licensed under the MIT License.

abtorrents-proxy's People

Contributors

captmicr0 avatar

Stargazers

darkeclipse avatar

Watchers

 avatar

Forkers

dark3clipse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.