rewrite: switch from instaloader to Instagram Private API

instaloader blocked by Instagram GraphQL 403. Using mobile API instead:
- i.instagram.com/api/v1 endpoints (same as Android app)
- Direct cookie loading from cookies.txt
- Stories, posts, albums, videos
- Random delays between requests
- Removed instaloader dependency, using requests directly
This commit is contained in:
2026-06-17 12:02:51 +07:00
parent bc1649d0ac
commit 1bd68c9a0e
5 changed files with 217 additions and 222 deletions

View File

@@ -3,7 +3,7 @@ FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg && \
apt-get install -y --no-install-recommends curl && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
@@ -11,6 +11,6 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /data/downloads /data/session
RUN mkdir -p /data/downloads
CMD ["python", "bot.py"]