Skip to content

Commit

Permalink
Follow Instagram's specification change about CSRF token
Browse files Browse the repository at this point in the history
FYI:
- Fixed an issue with csrf token not being extracted correctly by anasomar1 · Pull Request #164 · dvingerh/PyInstaLive
  dvingerh/PyInstaLive#164
  • Loading branch information
road-master committed Jan 27, 2024
1 parent a9ba994 commit 1f829f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
15 changes: 4 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
FROM mstmelody/python-ffmpeg:20201114221500
FROM mstmelody/python-ffmpeg:20240127133000
RUN apt-get update \
&& apt-get -y install git \
&& apt-get -y install --no-install-recommends git=1:2.25.1-1ubuntu3.11 \
&& rm -rf /var/lib/apt/lists/*

COPY ./Pipfile /workspace/

RUN pip --no-cache-dir install pipenv \
RUN pip3 --no-cache-dir install pipenv==2023.11.17 \
&& pipenv install --skip-lock --deploy --system \
&& pip uninstall -y pipenv virtualenv-clone virtualenv \
&& pip3 uninstall -y pipenv virtualenv-clone virtualenv \
&& rm -rf /workspace/*
# Pipenv has bug that not install pakcage from Git repository into system.
# pip has bug that not install pakcage from Git repository in Dockerfile.
RUN git clone --branch 3.2.0 https://github.com/dvingerh/PyInstaLive.git /tmp/PyInstaLive \
&& cd /tmp/PyInstaLive \
&& python3 setup.py install
ENTRYPOINT [ "pyinstalive", "-d" ]
8 changes: 6 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ verify_ssl = true
name = "pypi"

[packages]
pyInstaLive = {git = "https://github.com/dvingerh/PyInstaLive.git", editable = true, ref = "3.2.0"}

# Pyinstalive ver 4.0.2 raise following error when run pyinstalive command:
# Could not login: 'NoneType' object has no attribute 'get'
# - Fixed an issue with csrf token not being extracted correctly by anasomar1 · Pull Request #164 · dvingerh/PyInstaLive
# https://github.com/dvingerh/PyInstaLive/pull/164
# pyInstaLive = {git = "https://github.com/dvingerh/PyInstaLive.git", ref = "4.0.2"}
pyInstaLive = {git = "https://github.com/anasomar1/PyInstaLive.git", ref = "dev/csrf-token-none-issue"}
[dev-packages]

[requires]
Expand Down

0 comments on commit 1f829f6

Please sign in to comment.