diff --git a/Dockerfile b/Dockerfile index 1e91aa16..7f9a78d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM python:3.11-slim-bullseye +FROM python:3.13.9-slim-trixie COPY . /opt/holehe WORKDIR /opt/holehe -RUN python3 setup.py install +RUN pip3 install --upgrade pip && \ + pip3 install . diff --git a/README.md b/README.md index 03f12000..938080da 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,16 @@ cd holehe/ python3 setup.py install ``` -### With Docker - +### With Docker (To keep things comparmentalized) +*Note docker-buildx required* ```bash -docker build . -t my-holehe-image +docker buildx build -t my-holehe-image . docker run my-holehe-image holehe test@gmail.com ``` +You can then create an alias by adding the following to your .bashrc/.zshrc etc. +```ini +alias holehe='docker run my-holehe-image holehe' +``` ## Quick Start diff --git a/holehe/core.py b/holehe/core.py index 4cfac4de..d2c78a0a 100644 --- a/holehe/core.py +++ b/holehe/core.py @@ -64,8 +64,8 @@ def get_functions(modules,args=None): def check_update(): """Check and update holehe if not the last version""" - check_version = httpx.get("https://pypi.org/pypi/holehe/json") - if check_version.json()["info"]["version"] != __version__: + check_version = httpx.get("https://pypi.org/pypi/holehe/json").text + if json.loads(check_version)["info"]["version"] != __version__: if os.name != 'nt': p = Popen(["pip3", "install", diff --git a/setup.py b/setup.py index 1a0d58ab..0c234d95 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ packages=find_packages(), author="megadose", author_email="megadose@protonmail.com", - install_requires=["termcolor","bs4","httpx","trio","tqdm","colorama"], + install_requires=["termcolor","bs4","httpx","trio","tqdm","colorama","requests","legacy-cgi"], description="holehe allows you to check if the mail is used on different sites like twitter, instagram , snapchat and will retrieve information on sites with the forgotten password function.", include_package_data=True, url='http://github.com/megadose/holehe',