Skip to content

Commit 1f829f6

Browse files
committed
Follow Instagram's specification change about CSRF token
FYI: - Fixed an issue with csrf token not being extracted correctly by anasomar1 · Pull Request #164 · dvingerh/PyInstaLive dvingerh/PyInstaLive#164
1 parent a9ba994 commit 1f829f6

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

Dockerfile

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
FROM mstmelody/python-ffmpeg:20201114221500
1+
FROM mstmelody/python-ffmpeg:20240127133000
22
RUN apt-get update \
3-
&& apt-get -y install git \
3+
&& apt-get -y install --no-install-recommends git=1:2.25.1-1ubuntu3.11 \
44
&& rm -rf /var/lib/apt/lists/*
5-
65
COPY ./Pipfile /workspace/
7-
8-
RUN pip --no-cache-dir install pipenv \
6+
RUN pip3 --no-cache-dir install pipenv==2023.11.17 \
97
&& pipenv install --skip-lock --deploy --system \
10-
&& pip uninstall -y pipenv virtualenv-clone virtualenv \
8+
&& pip3 uninstall -y pipenv virtualenv-clone virtualenv \
119
&& rm -rf /workspace/*
12-
# Pipenv has bug that not install pakcage from Git repository into system.
13-
# pip has bug that not install pakcage from Git repository in Dockerfile.
14-
RUN git clone --branch 3.2.0 https://github.com/dvingerh/PyInstaLive.git /tmp/PyInstaLive \
15-
&& cd /tmp/PyInstaLive \
16-
&& python3 setup.py install
1710
ENTRYPOINT [ "pyinstalive", "-d" ]

Pipfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ verify_ssl = true
44
name = "pypi"
55

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

1115
[requires]

0 commit comments

Comments
 (0)