이건 Python이 잘못했다다

This commit is contained in:
imnyang 2025-05-09 20:11:41 +09:00
commit ca946990e1
41 changed files with 3081 additions and 964 deletions

View file

@ -1,30 +0,0 @@
FROM python:3.12
RUN sed -i 's@deb.debian.org@ftp.kaist.ac.kr@g' /etc/apt/sources.list.d/debian.sources
# Setup Crontab
WORKDIR /code
COPY crontab /code/crontab
COPY requirements.txt /code/requirements.txt
COPY app /code/app
RUN apt update && apt -y install tzdata && \
ln -fs /usr/share/zoneinfo/Asia/Seoul /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata && \
apt update && apt -y install cron
COPY crontab /etc/cron.d/crontab
RUN chmod 0644 /etc/cron.d/crontab
RUN echo "" >> /etc/cron.d/crontab # Ensure newline at end of file
RUN /usr/bin/crontab /etc/cron.d/crontab
# Setup Python Environment
WORKDIR /code
RUN pip config set global.break-system-packages true
RUN pip install -r requirements.txt
RUN rm -rf /etc/localtime
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
CMD ["cron", "-f"]

View file

@ -1,6 +0,0 @@
{
"build": {
"dockerfile": "Dockerfile",
"context": ".."
}
}

View file

@ -1,80 +0,0 @@
name: Python application
on:
schedule:
- cron: "0 13 * * *"
workflow_dispatch:
jobs:
run:
runs-on: self-hosted
environment: Main
env:
BOT_ROOT: "~/actions-runner/work/today.isangjeong"
BOT_INSTAGRAM_ID: ${{ secrets.BOT_INSTAGRAM_ID }}
BOT_INSTAGRAM_PASSWD: ${{ secrets.BOT_INSTAGRAM_PASSWD }}
BOT_INSTAGRAM_TOTP: ${{ secrets.BOT_INSTAGRAM_TOTP }}
BOT_KEY: ${{ secrets.BOT_KEY }}
BOT_WEBHOOK_URL: ${{ secrets.BOT_WEBHOOK_URL }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
# Cache Python dependencies
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
# Cache cookie.json
- name: Cache cookie.json with timestamp check
uses: actions/cache@v3
with:
path: /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json
key: ${{ runner.os }}-cookie-${{ steps.timestamp.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-cookie-
- name: Set timestamp for cookie.json
id: timestamp
run: |
echo "::set-output name=timestamp::$(date -r /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json +'%s')"
- name: Install dependencies (only if requirements.txt changed)
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt || echo "No changes in requirements.txt, skipping installation"
- name: Set Permissions
run: |
chmod +x app/run.sh app/gen-config.sh
- name: Generate Config
run: |
cd app
./gen-config.sh
- name: Add SSH private key
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Start SOCKS proxy with SSH
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 -D 9999 -f -N neko@imnya.ng -p5322
echo "SOCKS proxy started"
- name: Run application
run: |
cd app
./run.sh

View file

@ -1,78 +0,0 @@
name: School Event Manual
on:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
environment: Main
env:
BOT_ROOT: ${{ vars.BOT_ROOT }}
BOT_INSTAGRAM_ID: ${{ secrets.BOT_INSTAGRAM_ID }}
BOT_INSTAGRAM_PASSWD: ${{ secrets.BOT_INSTAGRAM_PASSWD }}
BOT_INSTAGRAM_TOTP: ${{ secrets.BOT_INSTAGRAM_TOTP }}
BOT_KEY: ${{ secrets.BOT_KEY }}
BOT_WEBHOOK_URL: ${{ secrets.BOT_WEBHOOK_URL }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
# Cache Python dependencies
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
# Cache cookie.json
- name: Cache cookie.json with timestamp check
uses: actions/cache@v3
with:
path: /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json
key: ${{ runner.os }}-cookie-${{ steps.timestamp.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-cookie-
- name: Set timestamp for cookie.json
id: timestamp
run: |
echo "::set-output name=timestamp::$(date -r /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json +'%s')"
- name: Install dependencies (only if requirements.txt changed)
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt || echo "No changes in requirements.txt, skipping installation"
- name: Set Permissions
run: |
chmod +x app/run.sh app/gen-config.sh
- name: Add SSH private key
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Start SOCKS proxy with SSH
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 -D 9999 -f -N neko@imnya.ng -p5322
echo "SOCKS proxy started"
- name: Generate Config
run: |
cd app
./gen-config.sh
- name: Run application
run: |
cd app
python3 force-event.py

16
.gitignore vendored
View file

@ -1,15 +1 @@
20*.png .env
# Auth
cookies.json
# Temp Files
temp/
.env
venv
.venv
__pycache__/
config.json

View file

@ -1,29 +1,25 @@
FROM python:3.12 FROM oven/bun:alpine
LABEL maintainer="@imnya"
# Setup System # Set the working directory
RUN sed -i 's@deb.debian.org@ftp.kaist.ac.kr@g' /etc/apt/sources.list.d/debian.sources
RUN pip install --upgrade pip
RUN apt update -y && apt upgrade -y && apt install -y cron
COPY config.json /code/app/config.json
# Setup Crontab
WORKDIR /code
COPY crontab /code/crontab
COPY requirements.txt /code/requirements.txt
COPY app /code/app COPY app /code/app
COPY .env /code/app/.env
COPY crontab /etc/cron.d/crontab RUN chmod +x /code/app/run.sh
RUN chmod 0644 /etc/cron.d/crontab
RUN echo "" >> /etc/cron.d/crontab # Ensure newline at end of file
RUN /usr/bin/crontab /etc/cron.d/crontab
# Setup Python Environment WORKDIR /code/app
WORKDIR /code RUN mkdir -p /code/app/temp
RUN pip config set global.break-system-packages true
RUN pip install -r requirements.txt
RUN rm -rf /etc/localtime # Install dependencies
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime RUN bun install
CMD ["cron", "-f"] # Run Cron job
RUN apk add dcron
RUN rc-update add dcron
RUN touch /var/log/cron.log
RUN service dcron start
# Copy the cron job file
COPY cron /etc/cron.d/cronjob
CMD [ "sleep", "infinity" ]

View file

@ -1,17 +0,0 @@
# Today.isangjeong
오늘 급식도 인스타로
실행하기 전에 `app/config.json`가 필요합니다.
`app/config.example.json`을 참고해서 만들어주세요.
**이 프로젝트는 백업을 위한 레포로 친절하게 문서를 쓸 생각이 없습니다.**
`docker build --no-cache --tag today-isangjeong:latest .`
`docker rm --force today-isangjeong`
`docker run -d -v /data/hdd/today.isanjeong-docker:/code/app/temp --name today-isangjeong today-isangjeong:latest`

36
app/.gitignore vendored Normal file
View file

@ -0,0 +1,36 @@
# dependencies (bun install)
node_modules
# output
out
dist
*.tgz
# code coverage
coverage
*.lcov
# logs
logs
_.log
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# caches
.eslintcache
.cache
*.tsbuildinfo
# IntelliJ based IDEs
.idea
# Finder (MacOS) folder config
.DS_Store
temp

15
app/README.md Normal file
View file

@ -0,0 +1,15 @@
# app
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.ts
```
This project was created using `bun init` in bun v1.2.12. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.

377
app/bun.lock Normal file
View file

@ -0,0 +1,377 @@
{
"lockfileVersion": 1,
"workspaces": {
"": {
"name": "app",
"dependencies": {
"@napi-rs/canvas": "^0.1.70",
"cheerio": "^1.0.0",
"igramapi": "^1.48.3",
"inquirer": "^12.6.0",
},
"devDependencies": {
"@types/bun": "latest",
},
"peerDependencies": {
"typescript": "^5",
},
},
},
"packages": {
"@inquirer/checkbox": ["@inquirer/checkbox@4.1.5", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/figures": "^1.0.11", "@inquirer/type": "^3.0.6", "ansi-escapes": "^4.3.2", "yoctocolors-cjs": "^2.1.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-swPczVU+at65xa5uPfNP9u3qx/alNwiaykiI/ExpsmMSQW55trmZcwhYWzw/7fj+n6Q8z1eENvR7vFfq9oPSAQ=="],
"@inquirer/confirm": ["@inquirer/confirm@5.1.9", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/type": "^3.0.6" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-NgQCnHqFTjF7Ys2fsqK2WtnA8X1kHyInyG+nMIuHowVTIgIuS10T4AznI/PvbqSpJqjCUqNBlKGh1v3bwLFL4w=="],
"@inquirer/core": ["@inquirer/core@10.1.10", "", { "dependencies": { "@inquirer/figures": "^1.0.11", "@inquirer/type": "^3.0.6", "ansi-escapes": "^4.3.2", "cli-width": "^4.1.0", "mute-stream": "^2.0.0", "signal-exit": "^4.1.0", "wrap-ansi": "^6.2.0", "yoctocolors-cjs": "^2.1.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-roDaKeY1PYY0aCqhRmXihrHjoSW2A00pV3Ke5fTpMCkzcGF64R8e0lw3dK+eLEHwS4vB5RnW1wuQmvzoRul8Mw=="],
"@inquirer/editor": ["@inquirer/editor@4.2.10", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/type": "^3.0.6", "external-editor": "^3.1.0" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-5GVWJ+qeI6BzR6TIInLP9SXhWCEcvgFQYmcRG6d6RIlhFjM5TyG18paTGBgRYyEouvCmzeco47x9zX9tQEofkw=="],
"@inquirer/expand": ["@inquirer/expand@4.0.12", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/type": "^3.0.6", "yoctocolors-cjs": "^2.1.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-jV8QoZE1fC0vPe6TnsOfig+qwu7Iza1pkXoUJ3SroRagrt2hxiL+RbM432YAihNR7m7XnU0HWl/WQ35RIGmXHw=="],
"@inquirer/figures": ["@inquirer/figures@1.0.11", "", {}, "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw=="],
"@inquirer/input": ["@inquirer/input@4.1.9", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/type": "^3.0.6" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-mshNG24Ij5KqsQtOZMgj5TwEjIf+F2HOESk6bjMwGWgcH5UBe8UoljwzNFHqdMbGYbgAf6v2wU/X9CAdKJzgOA=="],
"@inquirer/number": ["@inquirer/number@3.0.12", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/type": "^3.0.6" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-7HRFHxbPCA4e4jMxTQglHJwP+v/kpFsCf2szzfBHy98Wlc3L08HL76UDiA87TOdX5fwj2HMOLWqRWv9Pnn+Z5Q=="],
"@inquirer/password": ["@inquirer/password@4.0.12", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/type": "^3.0.6", "ansi-escapes": "^4.3.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-FlOB0zvuELPEbnBYiPaOdJIaDzb2PmJ7ghi/SVwIHDDSQ2K4opGBkF+5kXOg6ucrtSUQdLhVVY5tycH0j0l+0g=="],
"@inquirer/prompts": ["@inquirer/prompts@7.5.0", "", { "dependencies": { "@inquirer/checkbox": "^4.1.5", "@inquirer/confirm": "^5.1.9", "@inquirer/editor": "^4.2.10", "@inquirer/expand": "^4.0.12", "@inquirer/input": "^4.1.9", "@inquirer/number": "^3.0.12", "@inquirer/password": "^4.0.12", "@inquirer/rawlist": "^4.1.0", "@inquirer/search": "^3.0.12", "@inquirer/select": "^4.2.0" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-tk8Bx7l5AX/CR0sVfGj3Xg6v7cYlFBkEahH+EgBB+cZib6Fc83dwerTbzj7f2+qKckjIUGsviWRI1d7lx6nqQA=="],
"@inquirer/rawlist": ["@inquirer/rawlist@4.1.0", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/type": "^3.0.6", "yoctocolors-cjs": "^2.1.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-6ob45Oh9pXmfprKqUiEeMz/tjtVTFQTgDDz1xAMKMrIvyrYjAmRbQZjMJfsictlL4phgjLhdLu27IkHNnNjB7g=="],
"@inquirer/search": ["@inquirer/search@3.0.12", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/figures": "^1.0.11", "@inquirer/type": "^3.0.6", "yoctocolors-cjs": "^2.1.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-H/kDJA3kNlnNIjB8YsaXoQI0Qccgf0Na14K1h8ExWhNmUg2E941dyFPrZeugihEa9AZNW5NdsD/NcvUME83OPQ=="],
"@inquirer/select": ["@inquirer/select@4.2.0", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/figures": "^1.0.11", "@inquirer/type": "^3.0.6", "ansi-escapes": "^4.3.2", "yoctocolors-cjs": "^2.1.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-KkXQ4aSySWimpV4V/TUJWdB3tdfENZUU765GjOIZ0uPwdbGIG6jrxD4dDf1w68uP+DVtfNhr1A92B+0mbTZ8FA=="],
"@inquirer/type": ["@inquirer/type@3.0.6", "", { "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-/mKVCtVpyBu3IDarv0G+59KC4stsD5mDsGpYh+GKs1NZT88Jh52+cuoA1AtLk2Q0r/quNl+1cSUyLRHBFeD0XA=="],
"@lifeomic/attempt": ["@lifeomic/attempt@3.1.0", "", {}, "sha512-QZqem4QuAnAyzfz+Gj5/+SLxqwCAw2qmt7732ZXodr6VDWGeYLG6w1i/vYLa55JQM9wRuBKLmXmiZ2P0LtE5rw=="],
"@napi-rs/canvas": ["@napi-rs/canvas@0.1.70", "", { "optionalDependencies": { "@napi-rs/canvas-android-arm64": "0.1.70", "@napi-rs/canvas-darwin-arm64": "0.1.70", "@napi-rs/canvas-darwin-x64": "0.1.70", "@napi-rs/canvas-linux-arm-gnueabihf": "0.1.70", "@napi-rs/canvas-linux-arm64-gnu": "0.1.70", "@napi-rs/canvas-linux-arm64-musl": "0.1.70", "@napi-rs/canvas-linux-riscv64-gnu": "0.1.70", "@napi-rs/canvas-linux-x64-gnu": "0.1.70", "@napi-rs/canvas-linux-x64-musl": "0.1.70", "@napi-rs/canvas-win32-x64-msvc": "0.1.70" } }, "sha512-nD6NGa4JbNYSZYsTnLGrqe9Kn/lCkA4ybXt8sx5ojDqZjr2i0TWAHxx/vhgfjX+i3hCdKWufxYwi7CfXqtITSA=="],
"@napi-rs/canvas-android-arm64": ["@napi-rs/canvas-android-arm64@0.1.70", "", { "os": "android", "cpu": "arm64" }, "sha512-I/YOuQ0wbkVYxVaYtCgN42WKTYxNqFA0gTcTrHIGG1jfpDSyZWII/uHcjOo4nzd19io6Y4+/BqP8E5hJgf9OmQ=="],
"@napi-rs/canvas-darwin-arm64": ["@napi-rs/canvas-darwin-arm64@0.1.70", "", { "os": "darwin", "cpu": "arm64" }, "sha512-4pPGyXetHIHkw2TOJHujt3mkCP8LdDu8+CT15ld9Id39c752RcI0amDHSuMLMQfAjvusA9B5kKxazwjMGjEJpQ=="],
"@napi-rs/canvas-darwin-x64": ["@napi-rs/canvas-darwin-x64@0.1.70", "", { "os": "darwin", "cpu": "x64" }, "sha512-+2N6Os9LbkmDMHL+raknrUcLQhsXzc5CSXRbXws9C3pv/mjHRVszQ9dhFUUe9FjfPhCJznO6USVdwOtu7pOrzQ=="],
"@napi-rs/canvas-linux-arm-gnueabihf": ["@napi-rs/canvas-linux-arm-gnueabihf@0.1.70", "", { "os": "linux", "cpu": "arm" }, "sha512-QjscX9OaKq/990sVhSMj581xuqLgiaPVMjjYvWaCmAJRkNQ004QfoSMEm3FoTqM4DRoquP8jvuEXScVJsc1rqQ=="],
"@napi-rs/canvas-linux-arm64-gnu": ["@napi-rs/canvas-linux-arm64-gnu@0.1.70", "", { "os": "linux", "cpu": "arm64" }, "sha512-LNakMOwwqwiHIwMpnMAbFRczQMQ7TkkMyATqFCOtUJNlE6LPP/QiUj/mlFrNbUn/hctqShJ60gWEb52ZTALbVw=="],
"@napi-rs/canvas-linux-arm64-musl": ["@napi-rs/canvas-linux-arm64-musl@0.1.70", "", { "os": "linux", "cpu": "arm64" }, "sha512-wBTOllEYNfJCHOdZj9v8gLzZ4oY3oyPX8MSRvaxPm/s7RfEXxCyZ8OhJ5xAyicsDdbE5YBZqdmaaeP5+xKxvtg=="],
"@napi-rs/canvas-linux-riscv64-gnu": ["@napi-rs/canvas-linux-riscv64-gnu@0.1.70", "", { "os": "linux", "cpu": "none" }, "sha512-GVUUPC8TuuFqHip0rxHkUqArQnlzmlXmTEBuXAWdgCv85zTCFH8nOHk/YCF5yo0Z2eOm8nOi90aWs0leJ4OE5Q=="],
"@napi-rs/canvas-linux-x64-gnu": ["@napi-rs/canvas-linux-x64-gnu@0.1.70", "", { "os": "linux", "cpu": "x64" }, "sha512-/kvUa2lZRwGNyfznSn5t1ShWJnr/m5acSlhTV3eXECafObjl0VBuA1HJw0QrilLpb4Fe0VLywkpD1NsMoVDROQ=="],
"@napi-rs/canvas-linux-x64-musl": ["@napi-rs/canvas-linux-x64-musl@0.1.70", "", { "os": "linux", "cpu": "x64" }, "sha512-aqlv8MLpycoMKRmds7JWCfVwNf1fiZxaU7JwJs9/ExjTD8lX2KjsO7CTeAj5Cl4aEuzxUWbJPUUE2Qu9cZ1vfg=="],
"@napi-rs/canvas-win32-x64-msvc": ["@napi-rs/canvas-win32-x64-msvc@0.1.70", "", { "os": "win32", "cpu": "x64" }, "sha512-Q9QU3WIpwBTVHk4cPfBjGHGU4U0llQYRXgJtFtYqqGNEOKVN4OT6PQ+ve63xwIPODMpZ0HHyj/KLGc9CWc3EtQ=="],
"@types/bluebird": ["@types/bluebird@3.5.42", "", {}, "sha512-Jhy+MWRlro6UjVi578V/4ZGNfeCOcNCp0YaFNIUGFKlImowqwb1O/22wDVk3FDGMLqxdpOV3qQHD5fPEH4hK6A=="],
"@types/bun": ["@types/bun@1.2.12", "", { "dependencies": { "bun-types": "1.2.12" } }, "sha512-lY/GQTXDGsolT/TiH72p1tuyUORuRrdV7VwOTOjDOt8uTBJQOJc5zz3ufwwDl0VBaoxotSk4LdP0hhjLJ6ypIQ=="],
"@types/caseless": ["@types/caseless@0.12.5", "", {}, "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg=="],
"@types/chance": ["@types/chance@1.1.6", "", {}, "sha512-V+pm3stv1Mvz8fSKJJod6CglNGVqEQ6OyuqitoDkWywEODM/eJd1eSuIp9xt6DrX8BWZ2eDSIzbw1tPCUTvGbQ=="],
"@types/node": ["@types/node@22.15.17", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-wIX2aSZL5FE+MR0JlvF87BNVrtFWf6AE6rxSE9X7OwnVvoyCQjpzSRJ+M87se/4QCkCiebQAqrJ0y6fwIyi7nw=="],
"@types/request": ["@types/request@2.48.12", "", { "dependencies": { "@types/caseless": "*", "@types/node": "*", "@types/tough-cookie": "*", "form-data": "^2.5.0" } }, "sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw=="],
"@types/request-promise": ["@types/request-promise@4.1.51", "", { "dependencies": { "@types/bluebird": "*", "@types/request": "*" } }, "sha512-qVcP9Fuzh9oaAh8oPxiSoWMFGnWKkJDknnij66vi09Yiy62bsSDqtd+fG5kIM9wLLgZsRP3Y6acqj9O/v2ZtRw=="],
"@types/tough-cookie": ["@types/tough-cookie@4.0.5", "", {}, "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA=="],
"ajv": ["ajv@6.12.6", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="],
"ansi-escapes": ["ansi-escapes@4.3.2", "", { "dependencies": { "type-fest": "^0.21.3" } }, "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ=="],
"ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
"ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
"asn1": ["asn1@0.2.6", "", { "dependencies": { "safer-buffer": "~2.1.0" } }, "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ=="],
"assert-plus": ["assert-plus@1.0.0", "", {}, "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw=="],
"asynckit": ["asynckit@0.4.0", "", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="],
"aws-sign2": ["aws-sign2@0.7.0", "", {}, "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA=="],
"aws4": ["aws4@1.13.2", "", {}, "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw=="],
"bcrypt-pbkdf": ["bcrypt-pbkdf@1.0.2", "", { "dependencies": { "tweetnacl": "^0.14.3" } }, "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w=="],
"bignumber.js": ["bignumber.js@9.3.0", "", {}, "sha512-EM7aMFTXbptt/wZdMlBv2t8IViwQL+h6SLHosp8Yf0dqJMTnY6iL32opnAB6kAdL0SZPuvcAzFr31o0c/R3/RA=="],
"bluebird": ["bluebird@3.7.2", "", {}, "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="],
"boolbase": ["boolbase@1.0.0", "", {}, "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="],
"bun-types": ["bun-types@1.2.12", "", { "dependencies": { "@types/node": "*" } }, "sha512-tvWMx5vPqbRXgE8WUZI94iS1xAYs8bkqESR9cxBB1Wi+urvfTrF1uzuDgBHFAdO0+d2lmsbG3HmeKMvUyj6pWA=="],
"call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
"caseless": ["caseless@0.12.0", "", {}, "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw=="],
"chance": ["chance@1.1.12", "", {}, "sha512-vVBIGQVnwtUG+SYe0ge+3MvF78cvSpuCOEUJr7sVEk2vSBuMW6OXNJjSzdtzrlxNUEaoqH2GBd5Y/+18BEB01Q=="],
"chardet": ["chardet@0.7.0", "", {}, "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="],
"cheerio": ["cheerio@1.0.0", "", { "dependencies": { "cheerio-select": "^2.1.0", "dom-serializer": "^2.0.0", "domhandler": "^5.0.3", "domutils": "^3.1.0", "encoding-sniffer": "^0.2.0", "htmlparser2": "^9.1.0", "parse5": "^7.1.2", "parse5-htmlparser2-tree-adapter": "^7.0.0", "parse5-parser-stream": "^7.1.2", "undici": "^6.19.5", "whatwg-mimetype": "^4.0.0" } }, "sha512-quS9HgjQpdaXOvsZz82Oz7uxtXiy6UIsIQcpBj7HRw2M63Skasm9qlDocAM7jNuaxdhpPU7c4kJN+gA5MCu4ww=="],
"cheerio-select": ["cheerio-select@2.1.0", "", { "dependencies": { "boolbase": "^1.0.0", "css-select": "^5.1.0", "css-what": "^6.1.0", "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.0.1" } }, "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g=="],
"class-transformer": ["class-transformer@0.5.1", "", {}, "sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw=="],
"cli-width": ["cli-width@4.1.0", "", {}, "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ=="],
"color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],
"color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
"combined-stream": ["combined-stream@1.0.8", "", { "dependencies": { "delayed-stream": "~1.0.0" } }, "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="],
"core-util-is": ["core-util-is@1.0.2", "", {}, "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ=="],
"css-select": ["css-select@5.1.0", "", { "dependencies": { "boolbase": "^1.0.0", "css-what": "^6.1.0", "domhandler": "^5.0.2", "domutils": "^3.0.1", "nth-check": "^2.0.1" } }, "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg=="],
"css-what": ["css-what@6.1.0", "", {}, "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw=="],
"dashdash": ["dashdash@1.14.1", "", { "dependencies": { "assert-plus": "^1.0.0" } }, "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g=="],
"debug": ["debug@4.4.0", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA=="],
"delayed-stream": ["delayed-stream@1.0.0", "", {}, "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="],
"dom-serializer": ["dom-serializer@2.0.0", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", "entities": "^4.2.0" } }, "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg=="],
"domelementtype": ["domelementtype@2.3.0", "", {}, "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw=="],
"domhandler": ["domhandler@5.0.3", "", { "dependencies": { "domelementtype": "^2.3.0" } }, "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w=="],
"domutils": ["domutils@3.2.2", "", { "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", "domhandler": "^5.0.3" } }, "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw=="],
"dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
"ecc-jsbn": ["ecc-jsbn@0.1.2", "", { "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" } }, "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw=="],
"emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
"encoding-sniffer": ["encoding-sniffer@0.2.0", "", { "dependencies": { "iconv-lite": "^0.6.3", "whatwg-encoding": "^3.1.1" } }, "sha512-ju7Wq1kg04I3HtiYIOrUrdfdDvkyO9s5XM8QAj/bN61Yo/Vb4vgJxy5vi4Yxk01gWHbrofpPtpxM8bKger9jhg=="],
"entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
"es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
"es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
"es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="],
"es-set-tostringtag": ["es-set-tostringtag@2.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA=="],
"extend": ["extend@3.0.2", "", {}, "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="],
"external-editor": ["external-editor@3.1.0", "", { "dependencies": { "chardet": "^0.7.0", "iconv-lite": "^0.4.24", "tmp": "^0.0.33" } }, "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew=="],
"extsprintf": ["extsprintf@1.3.0", "", {}, "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g=="],
"fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
"fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="],
"forever-agent": ["forever-agent@0.6.1", "", {}, "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw=="],
"form-data": ["form-data@2.3.3", "", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.6", "mime-types": "^2.1.12" } }, "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ=="],
"function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="],
"get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
"get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="],
"getpass": ["getpass@0.1.7", "", { "dependencies": { "assert-plus": "^1.0.0" } }, "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng=="],
"gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
"har-schema": ["har-schema@2.0.0", "", {}, "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q=="],
"har-validator": ["har-validator@5.1.5", "", { "dependencies": { "ajv": "^6.12.3", "har-schema": "^2.0.0" } }, "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w=="],
"has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
"has-tostringtag": ["has-tostringtag@1.0.2", "", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="],
"hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="],
"htmlparser2": ["htmlparser2@9.1.0", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.1.0", "entities": "^4.5.0" } }, "sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ=="],
"http-signature": ["http-signature@1.2.0", "", { "dependencies": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", "sshpk": "^1.7.0" } }, "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ=="],
"iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
"igramapi": ["igramapi@1.48.3", "", { "dependencies": { "@lifeomic/attempt": "^3.0.0", "@types/chance": "^1.0.2", "@types/request-promise": "^4.1.43", "bluebird": "^3.7.1", "chance": "^1.0.18", "class-transformer": "^0.5.1", "debug": "^4.1.1", "image-size": "^0.7.3", "json-bigint": "^1.0.0", "lodash": "^4.17.20", "luxon": "^1.28.1", "reflect-metadata": "^0.1.13", "request": "^2.88.0", "request-promise": "^4.2.4", "rxjs": "^6.5.2", "snakecase-keys": "^3.1.0", "tough-cookie": "^4.1.3", "ts-custom-error": "^3.1.1", "ts-xor": "^1.0.6", "url-regex-safe": "^3.0.0", "utility-types": "^3.10.0" }, "peerDependencies": { "re2": "^1.17.2" }, "optionalPeers": ["re2"] }, "sha512-Q2NB/IawGHVHxWqyqVwvyH3wsaVoIeUdgzOFfuq5jFXyjBP62S8DZhfy+3VvYH/ED65dvbaQhqDRZ6l+fDJINQ=="],
"image-size": ["image-size@0.7.5", "", { "bin": { "image-size": "bin/image-size.js" } }, "sha512-Hiyv+mXHfFEP7LzUL/llg9RwFxxY+o9N3JVLIeG5E7iFIFAalxvRU9UZthBdYDEVnzHMgjnKJPPpay5BWf1g9g=="],
"inquirer": ["inquirer@12.6.0", "", { "dependencies": { "@inquirer/core": "^10.1.10", "@inquirer/prompts": "^7.5.0", "@inquirer/type": "^3.0.6", "ansi-escapes": "^4.3.2", "mute-stream": "^2.0.0", "run-async": "^3.0.0", "rxjs": "^7.8.2" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-3zmmccQd/8o65nPOZJZ+2wqt76Ghw3+LaMrmc6JE/IzcvQhJ1st+QLCOo/iLS85/tILU0myG31a2TAZX0ysAvg=="],
"ip-regex": ["ip-regex@4.3.0", "", {}, "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q=="],
"is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="],
"is-typedarray": ["is-typedarray@1.0.0", "", {}, "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA=="],
"isstream": ["isstream@0.1.2", "", {}, "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g=="],
"jsbn": ["jsbn@0.1.1", "", {}, "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg=="],
"json-bigint": ["json-bigint@1.0.0", "", { "dependencies": { "bignumber.js": "^9.0.0" } }, "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ=="],
"json-schema": ["json-schema@0.4.0", "", {}, "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="],
"json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
"json-stringify-safe": ["json-stringify-safe@5.0.1", "", {}, "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="],
"jsprim": ["jsprim@1.4.2", "", { "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", "json-schema": "0.4.0", "verror": "1.10.0" } }, "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw=="],
"lodash": ["lodash@4.17.21", "", {}, "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="],
"luxon": ["luxon@1.28.1", "", {}, "sha512-gYHAa180mKrNIUJCbwpmD0aTu9kV0dREDrwNnuyFAsO1Wt0EVYSZelPnJlbj9HplzXX/YWXHFTL45kvZ53M0pw=="],
"map-obj": ["map-obj@4.3.0", "", {}, "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ=="],
"math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],
"mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
"mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
"mute-stream": ["mute-stream@2.0.0", "", {}, "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA=="],
"nth-check": ["nth-check@2.1.1", "", { "dependencies": { "boolbase": "^1.0.0" } }, "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w=="],
"oauth-sign": ["oauth-sign@0.9.0", "", {}, "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="],
"os-tmpdir": ["os-tmpdir@1.0.2", "", {}, "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g=="],
"parse5": ["parse5@7.3.0", "", { "dependencies": { "entities": "^6.0.0" } }, "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw=="],
"parse5-htmlparser2-tree-adapter": ["parse5-htmlparser2-tree-adapter@7.1.0", "", { "dependencies": { "domhandler": "^5.0.3", "parse5": "^7.0.0" } }, "sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g=="],
"parse5-parser-stream": ["parse5-parser-stream@7.1.2", "", { "dependencies": { "parse5": "^7.0.0" } }, "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow=="],
"performance-now": ["performance-now@2.1.0", "", {}, "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow=="],
"psl": ["psl@1.15.0", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w=="],
"punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],
"qs": ["qs@6.5.3", "", {}, "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA=="],
"querystringify": ["querystringify@2.2.0", "", {}, "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ=="],
"reflect-metadata": ["reflect-metadata@0.1.14", "", {}, "sha512-ZhYeb6nRaXCfhnndflDK8qI6ZQ/YcWZCISRAWICW9XYqMUwjZM9Z0DveWX/ABN01oxSHwVxKQmxeYZSsm0jh5A=="],
"request": ["request@2.88.2", "", { "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", "caseless": "~0.12.0", "combined-stream": "~1.0.6", "extend": "~3.0.2", "forever-agent": "~0.6.1", "form-data": "~2.3.2", "har-validator": "~5.1.3", "http-signature": "~1.2.0", "is-typedarray": "~1.0.0", "isstream": "~0.1.2", "json-stringify-safe": "~5.0.1", "mime-types": "~2.1.19", "oauth-sign": "~0.9.0", "performance-now": "^2.1.0", "qs": "~6.5.2", "safe-buffer": "^5.1.2", "tough-cookie": "~2.5.0", "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" } }, "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw=="],
"request-promise": ["request-promise@4.2.6", "", { "dependencies": { "bluebird": "^3.5.0", "request-promise-core": "1.1.4", "stealthy-require": "^1.1.1", "tough-cookie": "^2.3.3" }, "peerDependencies": { "request": "^2.34" } }, "sha512-HCHI3DJJUakkOr8fNoCc73E5nU5bqITjOYFMDrKHYOXWXrgD/SBaC7LjwuPymUprRyuF06UK7hd/lMHkmUXglQ=="],
"request-promise-core": ["request-promise-core@1.1.4", "", { "dependencies": { "lodash": "^4.17.19" }, "peerDependencies": { "request": "^2.34" } }, "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw=="],
"requires-port": ["requires-port@1.0.0", "", {}, "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="],
"run-async": ["run-async@3.0.0", "", {}, "sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q=="],
"rxjs": ["rxjs@6.6.7", "", { "dependencies": { "tslib": "^1.9.0" } }, "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ=="],
"safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
"safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
"signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
"snakecase-keys": ["snakecase-keys@3.2.1", "", { "dependencies": { "map-obj": "^4.1.0", "to-snake-case": "^1.0.0" } }, "sha512-CjU5pyRfwOtaOITYv5C8DzpZ8XA/ieRsDpr93HI2r6e3YInC6moZpSQbmUtg8cTk58tq2x3jcG2gv+p1IZGmMA=="],
"sshpk": ["sshpk@1.18.0", "", { "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", "bcrypt-pbkdf": "^1.0.0", "dashdash": "^1.12.0", "ecc-jsbn": "~0.1.1", "getpass": "^0.1.1", "jsbn": "~0.1.0", "safer-buffer": "^2.0.2", "tweetnacl": "~0.14.0" }, "bin": { "sshpk-conv": "bin/sshpk-conv", "sshpk-sign": "bin/sshpk-sign", "sshpk-verify": "bin/sshpk-verify" } }, "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ=="],
"stealthy-require": ["stealthy-require@1.1.1", "", {}, "sha512-ZnWpYnYugiOVEY5GkcuJK1io5V8QmNYChG62gSit9pQVGErXtrKuPC55ITaVSukmMta5qpMU7vqLt2Lnni4f/g=="],
"string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
"strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
"tlds": ["tlds@1.258.0", "", { "bin": { "tlds": "bin.js" } }, "sha512-XGhStWuOlBA5D8QnyN2xtgB2cUOdJ3ztisne1DYVWMcVH29qh8eQIpRmP3HnuJLdgyzG0HpdGzRMu1lm/Oictw=="],
"tmp": ["tmp@0.0.33", "", { "dependencies": { "os-tmpdir": "~1.0.2" } }, "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw=="],
"to-no-case": ["to-no-case@1.0.2", "", {}, "sha512-Z3g735FxuZY8rodxV4gH7LxClE4H0hTIyHNIHdk+vpQxjLm0cwnKXq/OFVZ76SOQmto7txVcwSCwkU5kqp+FKg=="],
"to-snake-case": ["to-snake-case@1.0.0", "", { "dependencies": { "to-space-case": "^1.0.0" } }, "sha512-joRpzBAk1Bhi2eGEYBjukEWHOe/IvclOkiJl3DtA91jV6NwQ3MwXA4FHYeqk8BNp/D8bmi9tcNbRu/SozP0jbQ=="],
"to-space-case": ["to-space-case@1.0.0", "", { "dependencies": { "to-no-case": "^1.0.0" } }, "sha512-rLdvwXZ39VOn1IxGL3V6ZstoTbwLRckQmn/U8ZDLuWwIXNpuZDhQ3AiRUlhTbOXFVE9C+dR51wM0CBDhk31VcA=="],
"tough-cookie": ["tough-cookie@4.1.4", "", { "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", "universalify": "^0.2.0", "url-parse": "^1.5.3" } }, "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag=="],
"ts-custom-error": ["ts-custom-error@3.3.1", "", {}, "sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A=="],
"ts-xor": ["ts-xor@1.3.0", "", {}, "sha512-RLXVjliCzc1gfKQFLRpfeD0rrWmjnSTgj7+RFhoq3KRkUYa8LE/TIidYOzM5h+IdFBDSjjSgk9Lto9sdMfDFEA=="],
"tslib": ["tslib@1.14.1", "", {}, "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="],
"tunnel-agent": ["tunnel-agent@0.6.0", "", { "dependencies": { "safe-buffer": "^5.0.1" } }, "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w=="],
"tweetnacl": ["tweetnacl@0.14.5", "", {}, "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA=="],
"type-fest": ["type-fest@0.21.3", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],
"typescript": ["typescript@5.8.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="],
"undici": ["undici@6.21.2", "", {}, "sha512-uROZWze0R0itiAKVPsYhFov9LxrPMHLMEQFszeI2gCN6bnIIZ8twzBCJcN2LJrBBLfrP0t1FW0g+JmKVl8Vk1g=="],
"undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
"universalify": ["universalify@0.2.0", "", {}, "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg=="],
"uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="],
"url-parse": ["url-parse@1.5.10", "", { "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" } }, "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ=="],
"url-regex-safe": ["url-regex-safe@3.0.0", "", { "dependencies": { "ip-regex": "4.3.0", "tlds": "^1.228.0" }, "peerDependencies": { "re2": "^1.17.2" }, "optionalPeers": ["re2"] }, "sha512-+2U40NrcmtWFVjuxXVt9bGRw6c7/MgkGKN9xIfPrT/2RX0LTkkae6CCEDp93xqUN0UKm/rr821QnHd2dHQmN3A=="],
"utility-types": ["utility-types@3.11.0", "", {}, "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw=="],
"uuid": ["uuid@3.4.0", "", { "bin": { "uuid": "./bin/uuid" } }, "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="],
"verror": ["verror@1.10.0", "", { "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw=="],
"whatwg-encoding": ["whatwg-encoding@3.1.1", "", { "dependencies": { "iconv-lite": "0.6.3" } }, "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ=="],
"whatwg-mimetype": ["whatwg-mimetype@4.0.0", "", {}, "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg=="],
"wrap-ansi": ["wrap-ansi@6.2.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA=="],
"yoctocolors-cjs": ["yoctocolors-cjs@2.1.2", "", {}, "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA=="],
"@types/request/form-data": ["form-data@2.5.3", "", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "mime-types": "^2.1.35", "safe-buffer": "^5.2.1" } }, "sha512-XHIrMD0NpDrNM/Ckf7XJiBbLl57KEhT3+i3yY+eWm+cqYZJQTZrKo8Y8AWKnuV5GT4scfuUGt9LzNoIx3dU1nQ=="],
"external-editor/iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="],
"inquirer/rxjs": ["rxjs@7.8.2", "", { "dependencies": { "tslib": "^2.1.0" } }, "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA=="],
"parse5/entities": ["entities@6.0.0", "", {}, "sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw=="],
"request/tough-cookie": ["tough-cookie@2.5.0", "", { "dependencies": { "psl": "^1.1.28", "punycode": "^2.1.1" } }, "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g=="],
"request-promise/tough-cookie": ["tough-cookie@2.5.0", "", { "dependencies": { "psl": "^1.1.28", "punycode": "^2.1.1" } }, "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g=="],
"inquirer/rxjs/tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
}
}

View file

@ -1,7 +0,0 @@
{
"ROOT": "/code/app/",
"INSTAGRAM_ID": "today.isangjeong",
"INSTAGRAM_PASSWORD": "",
"KEY": "",
"WEBHOOK_URL": ""
}

189
app/currentUser.json Normal file
View file

@ -0,0 +1,189 @@
{
"primary_profile_link_type": 3,
"show_fb_link_on_profile": false,
"show_fb_page_link_on_profile": false,
"can_hide_category": true,
"account_type": 3,
"ads_page_id": null,
"ads_page_name": null,
"can_add_fb_group_link_on_profile": false,
"last_seen_timezone": "Asia/Seoul",
"account_category": "",
"allowed_commenter_type": "any",
"fbid_v2": "17841465790985828",
"full_name": "오늘 인천 상정중학교",
"has_gen_ai_personas_for_profile_banner": false,
"is_muted_words_spamscam_enabled": false,
"text_app_should_see_autoimported_ig_profile_picture_dialog": false,
"is_private": false,
"has_nme_badge": false,
"pk": 65966625032,
"pk_id": "65966625032",
"reel_auto_archive": "on",
"strong_id__": "65966625032",
"id": "65966625032",
"biography": "🤖 by @imnya.ng | not isangjeong\n⌛ 22:00 ~ 22:10\n🚫 인천상정중학교 학생자치부와 관련없습니다",
"biography_with_entities": {
"raw_text": "🤖 by @imnya.ng | not isangjeong\n⌛ 22:00 ~ 22:10\n🚫 인천상정중학교 학생자치부와 관련없습니다",
"entities": [
{
"user": {
"id": 56361473904,
"username": "imnya.ng"
}
}
]
},
"can_link_entities_in_bio": true,
"external_url": "",
"has_biography_translation": true,
"can_hide_public_contacts": true,
"category": "Community",
"should_show_category": true,
"category_id": 2612,
"is_category_tappable": true,
"should_show_public_contacts": false,
"is_eligible_for_smb_support_flow": true,
"is_eligible_for_lead_center": false,
"lead_details_app_id": "com.bloks.www.ig.smb.services.lead_gen.all_leads",
"smb_get_quote_partner": {
"partner_name": "Untitled form 09/29/24, 11:42 PM",
"app_id": "1991420644629190",
"url": "",
"partner_type": "FIRST_PARTY",
"display_category_name": "Learn more",
"category_type": "get_quote",
"button_label": "learn_more"
},
"is_business": false,
"professional_conversion_suggested_account_type": 2,
"direct_messaging": "",
"can_claim_page": false,
"can_crosspost_without_fb_token": false,
"instagram_location_id": "",
"address_street": "",
"business_contact_method": "UNKNOWN",
"city_id": 0,
"city_name": "",
"contact_phone_number": "",
"is_profile_audio_call_enabled": false,
"public_email": "support+ti@al-1s.kr",
"public_phone_country_code": "",
"public_phone_number": "",
"zip": "",
"displayed_action_button_partner": null,
"smb_delivery_partner": null,
"smb_support_delivery_partner": null,
"displayed_action_button_type": "",
"smb_support_partner": null,
"is_call_to_action_enabled": false,
"num_of_admined_pages": null,
"page_id": null,
"page_name": null,
"bio_links": [],
"is_quiet_mode_enabled": false,
"quiet_mode_windows": [
{
"days": [
"SUNDAY",
"MONDAY",
"TUESDAY",
"WEDNESDAY",
"THURSDAY"
],
"end_time": 25200,
"label": "sleep",
"start_time": 79200
}
],
"account_badges": [],
"birthday": "2009-04-20",
"birthday_today_visibility_for_viewer": "NOT_VISIBLE",
"custom_gender": "",
"enable_add_school_in_edit_profile": false,
"email": "instagram.today.isangjeong@imnya.ng",
"gender": 3,
"has_anonymous_profile_picture": false,
"has_external_url_edit_fl": false,
"hd_profile_pic_url_info": {
"height": 1080,
"url": "https://scontent-nrt1-1.cdninstagram.com/v/t51.2885-19/462390069_2083227972114861_8072524302429524014_n.jpg?_nc_ht=scontent-nrt1-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2QGndfMB5VxceQDczZ48abrOsYUpyoauZBxpYdDHiu94BPEmZyNg_ThGUDfJKtfbfJc&_nc_ohc=SeKre2L25XQQ7kNvwEQAtsu&_nc_gid=vqG22rWnFIKBRCQQ7kOxHg&edm=AJlpnE4BAAAA&ccb=7-5&oh=00_AfJYreCIIUPhmOrDLJsx2NmveHAAxVtedzVIv4QNg3L64w&oe=68238EBF&_nc_sid=125e1d",
"width": 1080
},
"hd_profile_pic_versions": [
{
"height": 320,
"url": "https://scontent-nrt1-1.cdninstagram.com/v/t51.2885-19/462390069_2083227972114861_8072524302429524014_n.jpg?stp=dst-jpg_s320x320_tt6&_nc_ht=scontent-nrt1-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2QGndfMB5VxceQDczZ48abrOsYUpyoauZBxpYdDHiu94BPEmZyNg_ThGUDfJKtfbfJc&_nc_ohc=SeKre2L25XQQ7kNvwEQAtsu&_nc_gid=vqG22rWnFIKBRCQQ7kOxHg&edm=AJlpnE4BAAAA&ccb=7-5&oh=00_AfLmhCzZwqvQtTou4qDSqVcGpiPTbMT-jIQU_iNJpVHDMg&oe=68238EBF&_nc_sid=125e1d",
"width": 320
},
{
"height": 640,
"url": "https://scontent-nrt1-1.cdninstagram.com/v/t51.2885-19/462390069_2083227972114861_8072524302429524014_n.jpg?stp=dst-jpg_s640x640_tt6&_nc_ht=scontent-nrt1-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2QGndfMB5VxceQDczZ48abrOsYUpyoauZBxpYdDHiu94BPEmZyNg_ThGUDfJKtfbfJc&_nc_ohc=SeKre2L25XQQ7kNvwEQAtsu&_nc_gid=vqG22rWnFIKBRCQQ7kOxHg&edm=AJlpnE4BAAAA&ccb=7-5&oh=00_AfL_-cuoU17O_X2h2qbiutdATl-85J86p7hmmhPu_egy1w&oe=68238EBF&_nc_sid=125e1d",
"width": 640
}
],
"interop_messaging_user_fbid": "17848239606193033",
"is_hide_more_comment_enabled": true,
"is_muted_words_custom_enabled": false,
"is_muted_words_global_enabled": true,
"is_mv4b_biz_asset_profile_locked": false,
"has_legacy_bb_pending_profile_picture_update": false,
"has_mv4b_pending_profile_picture_update": false,
"is_legacy_verified_max_profile_pic_edit_reached": false,
"is_mv4b_max_profile_edit_reached": false,
"is_mv4b_application_matured_for_profile_edit": true,
"is_showing_birthday_selfie": false,
"is_supervision_features_enabled": true,
"is_verified": false,
"is_user_eligible_for_threads_edit_profile_ep": false,
"has_active_mv4b_application": false,
"phone_number": "",
"profile_pic_id": "3473672767357384776_65966625032",
"profile_pic_url": "https://scontent-nrt1-1.cdninstagram.com/v/t51.2885-19/462390069_2083227972114861_8072524302429524014_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_ht=scontent-nrt1-1.cdninstagram.com&_nc_cat=109&_nc_oc=Q6cZ2QGndfMB5VxceQDczZ48abrOsYUpyoauZBxpYdDHiu94BPEmZyNg_ThGUDfJKtfbfJc&_nc_ohc=SeKre2L25XQQ7kNvwEQAtsu&_nc_gid=vqG22rWnFIKBRCQQ7kOxHg&edm=AJlpnE4BAAAA&ccb=7-5&oh=00_AfI1CMQ99v8W4u3DkVlcsJ8_HljGlfFuCTm9rUVgwKx1ow&oe=68238EBF&_nc_sid=125e1d",
"profile_edit_params": {
"full_name": {
"confirmation_dialog_text": "Because your account is verified, your name change may need to be reviewed. If so, you'll be notified when we've reviewed it. If not, your name will change immediately.",
"disclaimer_text": "",
"is_pending_review": false,
"should_show_confirmation_dialog": false
},
"username": {
"confirmation_dialog_text": "Because your account reaches a lot of people, your username change may need to be reviewed. If so, you'll be notified when we've reviewed it. If not, your username will change immediately.",
"disclaimer_text": "",
"is_pending_review": false,
"should_show_confirmation_dialog": false
}
},
"pronouns": [],
"show_conversion_edit_entry": true,
"show_schools_badge": null,
"show_teen_education_banner": false,
"supervision_info": {
"auto_approval_enabled": false,
"daily_time_limit_without_extensions_seconds": 3600,
"fc_url": "https://familycenter.instagram.com/dashboard/",
"has_guardian": true,
"has_stated_age": true,
"is_blocked_list_enabled": true,
"is_daily_limit_non_blocking": false,
"is_eligible_for_supervision": true,
"is_guardian_of_viewer": false,
"is_guardian_user": false,
"is_modify_privacy_settings_enabled": false,
"is_quiet_time_feature_enabled": true,
"is_quiet_time_non_blocking": false,
"is_supervised_by_viewer": false,
"is_supervised_in_general_supervision_or_in_cooldown": true,
"is_supervised_or_in_cooldown": true,
"is_supervised_user": true,
"screen_time_daily_limit_description": "Set by furry.netw.",
"screen_time_daily_limit_seconds": 3600,
"latest_valid_time_limit_extension_request": null,
"quiet_time_intervals": [],
"feature_controls": null
},
"trusted_username": "today.isangjeong",
"trust_days": 14,
"username": "today.isangjeong",
"text_app_cover_photo_url": null
}

View file

@ -1,33 +0,0 @@
import json
from instagrapi import Client
from datetime import datetime, timedelta
import library.lib as lib
with open('./config.json') as json_file:
json_data = json.load(json_file)
KEY = json_data['KEY']
ROOT = json_data['ROOT']
font = f"{ROOT}/library/Pretendard-Bold.ttf"
WEBHOOK_URL = json_data['WEBHOOK_URL']
print("🍪 | Retrieving saved account information.")
cl = Client(json.load(open('./temp/auth/cookies.json')))
cl.set_proxy("socks5h://localhost:9999")
print("🍪 | Account information was successfully retrieved.")
오늘 = datetime.today()
내일 = 오늘 + timedelta(days=1)
MLSV_YMD = (datetime.now() + timedelta(days=1)).strftime('%Y%m%d')
print("📅 | Today is the last day of the month.")
print("📆 | Uploading School Event Post")
학사일정_경로 = lib.학사일정_얻기()
cl.photo_upload(
학사일정_경로,
caption=f"#인천상정중학교 #상정중학교 #학사일정 \n{내일.strftime("%Y")}{내일.strftime("%m")}월 학사일정",
extra_data={'is_paid_partnership': False}
)
print("📆 | School Event Post Uploaded")
print("🎉 | All tasks completed.")

View file

@ -1,45 +0,0 @@
#!/bin/bash
# Required environment variables
required_vars=("BOT_ROOT" "BOT_INSTAGRAM_ID" "BOT_INSTAGRAM_PASSWD" "BOT_INSTAGRAM_TOTP" "BOT_KEY" "BOT_WEBHOOK_URL")
# Check for missing environment variables
missing_vars=()
for var in "${required_vars[@]}"; do
if [ -z "${!var}" ]; then
missing_vars+=("$var")
fi
done
if [ ${#missing_vars[@]} -ne 0 ]; then
echo "Error: Missing required environment variables:"
printf '%s\n' "${missing_vars[@]}"
exit 1
fi
# Generate config.json
cat > config.json << EOF
{
"ROOT": "${BOT_ROOT}",
"INSTAGRAM_ID": "${BOT_INSTAGRAM_ID}",
"INSTAGRAM_PASSWORD": "${BOT_INSTAGRAM_PASSWD}",
"INSTAGRAM_TOTP": "${BOT_INSTAGRAM_TOTP}",
"KEY": "${BOT_KEY}",
"WEBHOOK_URL": "${BOT_WEBHOOK_URL}"
}
EOF
if [ ! -d "temp" ]; then
mkdir temp
fi
if [ ! -d "temp/auth" ]; then
mkdir temp/auth
fi
# If doesn't have temp/cookies.json, create it
if [ ! -f "./temp/auth/cookies.json" ]; then
mkdir temp/auth
python3 library/init-auth.py
fi
echo "Successfully generated config.json"

69
app/index.ts Normal file
View file

@ -0,0 +1,69 @@
import { CreateImage } from "./lib/image";
import { Login, Upload } from "./lib/instagram";
console.time("🎉 | Done")
console.time("🔓 | Instagram login");
await Login()
.then((data) => {
console.log("✨ | Instagram login successful");
console.log(`🤔 | Login as ${data.currentUser.full_name}`);
})
.catch((error) => {
console.error("❌ | Instagram login failed:", error);
})
.finally(() => {
console.timeEnd("🔓 | Instagram login");
});
let YYMMDD = "";
// 실행할 때 --today 옵션을 주면 오늘 날짜로 바뀜
const args = process.argv.slice(2);
if (args.includes("--today")) {
console.log("📅 | --today option detected, using today's date");
YYMMDD = new Date().toISOString().slice(0, 10).replace(/-/g, "").toString();
console.log("📅 | Using today's date:", YYMMDD);
} else {
const yesterday = new Date();
yesterday.setDate(yesterday.getDate() - 1);
YYMMDD = yesterday.toISOString().slice(0, 10).replace(/-/g, "").toString();
console.log("📅 | Using yesterday's date:", YYMMDD);
}
// Tomorrow is 1st of the month
const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);
console.log(tomorrow.getDate());
if (tomorrow.getDate() === 1) {
console.log("📅 | Tomorrow is the 1st of the month, fetching schedule...");
console.time("📅 | Create Post Schedule");
await CreateImage.PostSchedule();
console.timeEnd("📅 | Create Post Schedule");
console.time("📤 | Upload Post Schedule");
await Upload.Post(`./temp/schedule-${new Date().getFullYear()}-${new Date().getMonth() + 1}.png`, `#인천상정중학교 #상정중학교 #학사일정 \n${new Date().getFullYear()}년도 ${new Date().getMonth() + 1}월 학사 일정`);
}
try {
console.time("📷 | Create Post Image");
await CreateImage.PostMeal(YYMMDD);
console.timeEnd("📷 | Create Post Image");
console.time("📱 | Create Story Image");
await CreateImage.ConvertToStory(`./temp/${YYMMDD}.png`);
console.timeEnd("📱 | Create Story Image");
console.time("📤 | Upload Post");
await Upload.Post(`./temp/${YYMMDD}.png`, `#인천상정중학교 #상정중학교 #급식 \n${YYMMDD}일자 급식`);
console.timeEnd("📤 | Upload Post");
console.time("📤 | Upload Story");
await Upload.Story(`./temp/${YYMMDD}-story.png`, YYMMDD);
console.timeEnd("📤 | Upload Story");
} catch (error) {
console.error("❌ | Error during image creation or upload:", error);
} finally {
console.timeEnd("🎉 | Done");
}

39
app/lib/discord.ts Normal file
View file

@ -0,0 +1,39 @@
import { getMealInfo } from "./meal";
const WEBHOOK_URL = process.env.DISCORD_WEBHOOK_URL as string;
export async function Discord(MLSV_YMD: string) {
const mealInfo = await getMealInfo(MLSV_YMD);
//const isVTS = vts.VTS임(MLSV_YMD);
const data = {
// To include VTS info, uncomment and define isVTS:
// content: `${MLSV_YMD.slice(0, 4)}년 ${MLSV_YMD.slice(4, 6)}월 ${MLSV_YMD.slice(6, 8)}일 급식 정보${isVTS ? " | with V.T.S." : ""}`,
content: `${MLSV_YMD.slice(0, 4)}${MLSV_YMD.slice(
4,
6
)} ${MLSV_YMD.slice(6, 8)} `,
username: "@today.isangjeong",
embeds: [
{
title: "🏫 | 인천상정중학교",
description: `🔥 ${mealInfo.kcal}\n\n${mealInfo.meal}`,
},
],
};
console.log("🏓 | Sending Payload");
const response = await fetch(WEBHOOK_URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
});
if (!response.ok) {
console.error("Error sending Discord webhook:", response.statusText);
} else {
console.log(`✨ | Payload successfully, code ${response.status}`);
}
}

151
app/lib/image.ts Normal file
View file

@ -0,0 +1,151 @@
import path from "path";
import { join } from "path";
import { createCanvas, loadImage, GlobalFonts } from "@napi-rs/canvas";
import { getMealInfo } from "./meal"; // 이 함수의 내용은 제공되지 않았으므로 그대로 둡니다.
import { getAllSchedules } from "./schedule";
GlobalFonts.registerFromPath('./template/Pretendard-Bold.ttf', 'Pretendard Bold')
export class CreateImage {
static async PostMeal(MLSV_YMD: string) {
const mealInfo = await getMealInfo(MLSV_YMD);
const img = await loadImage(path.join("./template/skeleton.png"));
const canvas = createCanvas(img.width, img.height);
const ctx = canvas.getContext("2d");
ctx.drawImage(img, 0, 0);
ctx.font = "56px Pretendard Bold";
ctx.fillStyle = "white";
ctx.textAlign = "left";
const lines = mealInfo.meal.split("\n").reverse();
lines.forEach((line, i) => {
ctx.fillText(line, 75, 930 - i * 60);
});
ctx.font = "24px Pretendard Bold";
ctx.textAlign = "right";
ctx.fillText(
`${MLSV_YMD.slice(0, 4)}${MLSV_YMD.slice(4, 6)}${MLSV_YMD.slice(
6,
8
)}`,
945,
110
);
ctx.fillStyle = "#89CAFF";
ctx.fillText(mealInfo.kcal, 945, 220);
/*if (vts.VTS(MLSV_YMD)) {
ctx.fillStyle = "#CDAD94";
ctx.fillText("with V.T.S.", 830, 225);
}*/ // VTS
const outPath = path.join("./temp", `${MLSV_YMD}.png`); // 경로 수정: "./temp/" -> "./temp"
const buffer = canvas.toBuffer("image/png");
try {
await Bun.write(outPath, buffer);
console.log("🍲 | Meal Info Image Saved");
} catch (error) {
console.error("Error saving meal info image:", error);
}
}
static async PostSchedule() {
const today = new Date();
const year = today.getFullYear();
const month = (today.getMonth() + 1).toString().padStart(2, "0");
// 일정 데이터 불러오기
const allSchedules = await getAllSchedules();
const events = allSchedules[month] || [];
// 이미지 로드
const image = await loadImage(join("./template/skeleton_schoolevent.png"));
const canvas = createCanvas(image.width, image.height);
const ctx = canvas.getContext("2d");
// 배경 그리기
ctx.drawImage(image, 0, 0);
// 폰트 설정
const eventFont = "48px Pretendard Bold";
const detailFont = "24px Pretendard Bold";
ctx.font = eventFont;
ctx.fillStyle = "white";
ctx.textAlign = "left";
// 행사 내용 그리기
let yPosition = 930;
for (const event of events.slice().reverse()) {
ctx.fillText(`${event.date} : ${event.desc}`, 75, yPosition);
yPosition -= 60;
}
// 상단 월 정보
ctx.font = detailFont;
ctx.textAlign = "right";
ctx.fillText(`${year}${parseInt(month)}`, 945, 110);
// 파일 저장
const outputFilePath = join("./", `temp/schedule-${year}-${month}.png`);
const buffer = canvas.toBuffer("image/png");
require("fs").writeFileSync(outputFilePath, buffer);
console.log("📅 | School Event Image Saved");
return outputFilePath;
}
static async ConvertToStory(filePath: string) {
const inPath = path.join("./",`${filePath}`);
let img;
try {
img = await loadImage(inPath);
} catch (error) {
console.error(`Error loading image for story: ${inPath}`, error);
// Post 메서드가 먼저 호출되어 이미지가 생성되었는지 확인 필요
// 또는 에러 처리를 통해 사용자에게 알림
return;
}
const width = img.width;
const height = img.height;
const aspectRatio = 9 / 16;
const currentRatio = width / height;
let newWidth = width;
let newHeight = height;
if (currentRatio < aspectRatio) {
newWidth = Math.floor(height * aspectRatio);
} else {
newHeight = Math.floor(width / aspectRatio);
}
const canvas = createCanvas(newWidth, newHeight);
const ctx = canvas.getContext("2d");
ctx.fillStyle = "#0A0A0A"; // 배경색
ctx.fillRect(0, 0, newWidth, newHeight);
// 원본 이미지를 새 캔버스 중앙에 맞추어 약간 작게(85%) 그립니다.
const resizedWidth = Math.floor(width * 0.85);
const resizedHeight = Math.floor(height * 0.85);
const offsetX = Math.floor((newWidth - resizedWidth) / 2);
const offsetY = Math.floor((newHeight - resizedHeight) / 2);
ctx.drawImage(img, offsetX, offsetY, resizedWidth, resizedHeight);
const outPath = path.join("./", `${filePath}-story.png`);
const buffer = canvas.toBuffer("image/png");
try {
await Bun.write(outPath, buffer);
console.log("🔄️ | Story Convert Success");
} catch (error) {
console.error("Error saving story info image:", error);
}
}
}

65
app/lib/instagram.ts Normal file
View file

@ -0,0 +1,65 @@
import path from 'path';
import { IgApiClient } from "igramapi";
const ig = new IgApiClient();
export async function Login() {
ig.state.generateDevice(process.env.IG_USERNAME!);
ig.state.appUserAgent
try {
await ig.simulate.preLoginFlow();
const loggedInUser = await ig.account.login(
process.env.IG_USERNAME!,
process.env.IG_PASSWORD!
);
process.nextTick(async () => await ig.simulate.postLoginFlow());
const currentUser = await ig.account.currentUser();
return { loggedInUser, currentUser };
} catch (error: any) {
if (error.name === "IgCheckpointError") {
console.error(
"Instagram checkpoint required. Please verify your account in the Instagram app or handle the challenge."
);
// Optionally, you can trigger challenge handling here
// await ig.challenge.auto(true); // Requesting sms-code or click "It was me" button
} else {
console.error("🔒 | Login failed:", error);
}
throw error;
}
}
export class Upload {
static async Post(filePath: string, caption: string) {
try {
const ImagePath = path.resolve(`${filePath}`);
const bunFile = Bun.file(ImagePath);
const ImageBuffer = Buffer.from(await bunFile.arrayBuffer());
await ig.publish.photo({
file: ImageBuffer,
caption: caption,
});
} catch (error) {
console.error("Error uploading post:", error);
}
}
static async Story(filePath: string, MLSV_YMD: string) {
try {
const ImagePath = path.resolve(`${filePath}`);
const bunFile = Bun.file(ImagePath);
const ImageBuffer = Buffer.from(await bunFile.arrayBuffer());
await ig.publish.story({
file: ImageBuffer,
caption: `#인천상정중학교 #상정중학교 #급식 \n${MLSV_YMD}일자 급식`,
});
} catch (error) {
console.error("Error uploading post:", error);
}
}
}

25
app/lib/meal.ts Normal file
View file

@ -0,0 +1,25 @@
const KEY = process.env.NEIS_API_KEY;
export function removeNutritionInfo(value: string): string {
const lines = value.trim().split('\n');
const cleanedLines = lines.map(line => line.replace(/\(.*?\)/g, '').trim());
const result = cleanedLines.join('\n');
return result;
}
export async function getMealInfo(MLSV_YMD: string): Promise<{ meal: string; date: string, kcal: string }> {
const url = `https://open.neis.go.kr/hub/mealServiceDietInfo?Type=json&ATPT_OFCDC_SC_CODE=E10&SD_SCHUL_CODE=7331071&MLSV_YMD=${MLSV_YMD}&KEY=${KEY}`;
const response = await fetch(url);
const data = await response.json();
// @ts-ignore
const DDISH_NM = data.mealServiceDietInfo[1].row[0].DDISH_NM;
return {
meal: removeNutritionInfo(DDISH_NM.replace(/<br\s*\/?>/gi, '\n')),
date: MLSV_YMD,
// @ts-ignore
kcal: data.mealServiceDietInfo[1].row[0].CAL_INFO,
};
}

105
app/lib/schedule.ts Normal file
View file

@ -0,0 +1,105 @@
import { writeFileSync, existsSync, readFileSync } from "fs";
import * as cheerio from "cheerio";
const CACHE_FILE = "./temp/scheduleCache.json";
const URLS = {
section1:
"https://isangjeong.icems.kr/schdList.do?section=1&m=021101&s=isangjeong",
section2:
"https://isangjeong.icems.kr/schdList.do?section=2&m=021101&s=isangjeong",
};
const MONTH_XPATH_MAP: Record<
string,
{ section: keyof typeof URLS; divIndex: number }
> = {
"03": { section: "section1", divIndex: 2 },
"04": { section: "section1", divIndex: 3 },
"05": { section: "section1", divIndex: 4 },
"06": { section: "section1", divIndex: 5 },
"07": { section: "section1", divIndex: 6 },
"08": { section: "section1", divIndex: 7 },
"09": { section: "section2", divIndex: 2 },
"10": { section: "section2", divIndex: 3 },
"11": { section: "section2", divIndex: 4 },
"12": { section: "section2", divIndex: 5 },
"01": { section: "section2", divIndex: 6 },
"02": { section: "section2", divIndex: 7 },
};
async function fetchSectionSchedule(
url: string,
divIndexes: { month: string; index: number }[]
): Promise<Record<string, { date: string; desc: string }[]>> {
const res = await fetch(url, {
headers: {
"User-Agent": "Mozilla/5.0 (compatible; today.isangjeong/1.0)",
},
});
const html = await res.text();
const $ = cheerio.load(html);
const sectionSchedule: Record<string, { date: string; desc: string }[]> = {};
for (const { month, index } of divIndexes) {
const selector = `#all-scroll > div > form > div > div:nth-of-type(2) > div:nth-of-type(${index}) > dl > dd > ul`;
const items: { date: string; desc: string }[] = [];
$(selector).find("li").each((_, li) => {
const text = $(li).text().trim().replace(/\u00A0/g, " ");
if (text) {
const [date, desc] = text.split(" : ");
if (date && desc) {
items.push({ date: date.trim(), desc: desc.trim() });
}
}
});
sectionSchedule[month] = items;
}
return sectionSchedule;
}
export async function getAllSchedules(
refresh = false
): Promise<Record<string, { date: string; desc: string }[]>> {
if (!refresh && existsSync(CACHE_FILE)) {
const cached = readFileSync(CACHE_FILE, "utf-8");
return JSON.parse(cached);
}
const sectionMap: Record<keyof typeof URLS, { month: string; index: number }[]> = {
section1: [],
section2: [],
};
for (const [month, { section, divIndex }] of Object.entries(MONTH_XPATH_MAP)) {
sectionMap[section].push({ month, index: divIndex });
}
// 병렬로 section1, section2 요청
const promises = (Object.keys(sectionMap) as (keyof typeof URLS)[]).map(
async (section) => {
const url = URLS[section];
try {
const sectionSchedule = await fetchSectionSchedule(url, sectionMap[section]);
console.log(`${section} 완료`);
return sectionSchedule;
} catch (err) {
console.error(`${section} 실패:`, err);
return Object.fromEntries(sectionMap[section].map(({ month }) => [month, []]));
}
}
);
const results = await Promise.all(promises);
const schedule = Object.assign({}, ...results);
writeFileSync(CACHE_FILE, JSON.stringify(schedule, null, 2), "utf-8");
console.log(`📦 캐시 저장됨 → ${CACHE_FILE}`);
return schedule;
}

View file

@ -1,228 +0,0 @@
{
"last_update": "20250305",
"event": {
"02": {
"0": {
"start": 20250208,
"end": 20250302,
"data": "겨울방학 & 봄방학"
},
"1": {
"start": 20250227,
"end": 20250227,
"data": "교과서 배부 및 반 배정 등교"
}
},
"03": {
"2": {
"start": 20250312,
"end": 20250312,
"data": "학급자치회장 선거 (3~4교시)"
},
"3": {
"start": 20250313,
"end": 20250313,
"data": "동아리 조직 (5~6교시)"
},
"4": {
"start": 20250320,
"end": 20250320,
"data": "기초학력진단검사 (1~4교시)"
},
"5": {
"start": 20250331,
"end": 20250331,
"data": "과학의 달 행사 (1~2교시)"
},
"6": {
"start": 20250331,
"end": 20250331,
"data": "성교육 (3교시)"
},
"7": {
"start": 20250331,
"end": 20250331,
"data": "표준화 검사 (4교시)"
},
"8": {
"start": 20250331,
"end": 20250331,
"data": "동아리 (5~7교시)"
},
"9": {
"start": 20250331,
"end": 20250331,
"data": "동아리 [3학년] (5~6교시)"
},
"10": {
"start": 20250331,
"end": 20250331,
"data": "자율 [3학년] (7교시)"
}
},
"04": {
"1": {
"start": 20250401,
"end": 20250403,
"data": "1~3학년 영어듣기평가"
},
"2": {
"start": 20250430,
"end": 20250501,
"data": "1학기 1회고사 [2,3학년]"
}
},
"05": {
"0": {
"start": 20250505,
"end": 20250505,
"data": "어린이날 / 부처님오신날"
},
"1": {
"start": 20250505,
"end": 20250506,
"data": "대체 휴일"
},
"2": {
"start": 20250509,
"end": 20250509,
"data": "전일제 동아리 (1~7교시)"
},
"3": {
"start": 20250513,
"end": 20250513,
"data": "학생자치회 리더십캠프"
},
"4": {
"start": 20250515,
"end": 20250515,
"data": "1학년 건강검진"
},
"5": {
"start": 20250516,
"end": 20250516,
"data": "스포츠 대축제"
},
"6": {
"start": 20250521,
"end": 20250521,
"data": "진로체험활동 [3학년]"
},
"7": {
"start": 20250523,
"end": 20250523,
"data": "진로체험활동 [1,2학년]"
},
"8": {
"start": 20250530,
"end": 20250530,
"data": "약물 및 사이버 중독 예방 교육 (1교시)"
},
"9": {
"start": 20250530,
"end": 20250530,
"data": "학생 성교육 (2교시)"
},
"10": {
"start": 20250530,
"end": 20250530,
"data": "표준화검사해설 [1,2학년] (3교시)"
},
"11": {
"start": 20250530,
"end": 20250530,
"data": "학생자치회의 [3학년] (3교시)"
},
"12": {
"start": 20250530,
"end": 20250530,
"data": "표준화검사해설 [3학년] (4교시)"
},
"13": {
"start": 20250530,
"end": 20250530,
"data": "학생자치회의 [1,2학년] (4교시)"
},
"14": {
"start": 20250530,
"end": 20250530,
"data": "동아리 (5~7교시)"
}
},
"06": {
"0": {
"start": 20250604,
"end": 20250604,
"data": "2학년 교과연계 체험학습"
},
"1": {
"start": 20250606,
"end": 20250606,
"data": "현충일"
}
},
"7": {
"0": {
"start": 20250707,
"end": 20250709,
"data": "1학기 2회고사 [2,3학년]"
},
"1": {
"start": 20250722,
"end": 20250722,
"data": "인성교육 (1교시)"
},
"2": {
"start": 20250722,
"end": 20250722,
"data": "학교폭력예방교육 (2교시)"
},
"3": {
"start": 20250722,
"end": 20250722,
"data": "방학식 (3교시)"
},
"4": {
"start": 20250722,
"end": 20250722,
"data": "깨끗한 학교 만들기 (4교시)"
},
"5": {
"start": 20250723,
"end": 20250811,
"data": "여름방학"
}
},
"08": {
"0": {
"start": 20250815,
"end": 20250815,
"data": "광복절"
}
},
"10": {
"0": {
"start": 20251003,
"end": 20251003,
"data": "개천절"
},
"1": {
"start": 20251005,
"end": 20251008,
"data": "추석"
},
"2": {
"start": 20251009,
"end": 20251009,
"data": "한글날"
}
},
"12": {
"0": {
"start": 20251225,
"end": 20251225,
"data": "크리스마스"
}
}
}
}

View file

@ -1,11 +0,0 @@
"03": {
"0": {
"start": 20250301,
"end": 20250303,
"data": "삼일절"
},
"1": {
"start": 20250304,
"end": 20250304,
"data": "입학식"
},

View file

@ -1,28 +0,0 @@
#import vts
#vts.download(vts.get_board())
from instagrapi import Client
import json, os
import time
with open('./config.json') as json_file:
json_data = json.load(json_file)
ROOT = json_data['ROOT']
INSTAGRAM_AUTH = [json_data['INSTAGRAM_ID'], json_data['INSTAGRAM_PASSWORD'], json_data['INSTAGRAM_TOTP']]
cl = Client()
#cl.set_proxy("socks5h://localhost:9999")
code = cl.totp_generate_code(INSTAGRAM_AUTH[2])
cl.login(INSTAGRAM_AUTH[0], INSTAGRAM_AUTH[1], verification_code=code)
cl.set_user_agent('Instagram 361.0.0.46.88 Android (35/15; 394dpi; 1084x2412; Nothing; A065; Pong; qcom; ko_KR_#u-fw-sun-mu-celsius; 674675147)')
cl.get_settings()
json.dump(
cl.get_settings(),
open(f'{ROOT}/temp/auth/cookies.json', 'w')
)
print("🍪 | Account information was successfully retrieved.")
print(f"📅 | Job ended at {time.time()}")

View file

@ -1,173 +0,0 @@
import re
import json
def 영양정보_삭제(:str):
줄들 = .strip().split('\n')
청소된_줄 = [re.sub(r'\(.*?\)', '', ).strip() for in 줄들]
결과 = '\n'.join(청소된_줄)
return 결과
import requests
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
import library.vts as vts
import os
from datetime import datetime, timedelta
with open('./config.json') as json_file:
json_data = json.load(json_file)
KEY = json_data['KEY']
ROOT = json_data['ROOT']
font = f"{ROOT}/library/Pretendard-Bold.ttf"
WEBHOOK_URL = json_data['WEBHOOK_URL']
# DDISH_NM
def 급식_정보_얻기(MLSV_YMD:str):
답장 = requests.get(
f"https://open.neis.go.kr/hub/mealServiceDietInfo?Type=json&ATPT_OFCDC_SC_CODE=E10&SD_SCHUL_CODE=7331071&MLSV_YMD={MLSV_YMD}&KEY={KEY}"
)
print(f"https://open.neis.go.kr/hub/mealServiceDietInfo?Type=json&ATPT_OFCDC_SC_CODE=E10&SD_SCHUL_CODE=7331071&MLSV_YMD={MLSV_YMD}&KEY={KEY}")
print(답장.json())
DDISH_NM = 답장.json()['mealServiceDietInfo'][1]['row'][0]['DDISH_NM']
return 영양정보_삭제(DDISH_NM.replace("<br/>", "\n"))
def 급식_칼로리_얻기(MLSV_YMD:str):
답장 = requests.get(
f"https://open.neis.go.kr/hub/mealServiceDietInfo?Type=json&ATPT_OFCDC_SC_CODE=E10&SD_SCHUL_CODE=7331071&MLSV_YMD={MLSV_YMD}&KEY={KEY}"
)
return 답장.json()['mealServiceDietInfo'][1]['row'][0]['CAL_INFO']
def 얻기(MLSV_YMD:str):
if MLSV_YMD == "20250401":
return
print("집가고싶다발동")
급식 = 급식_정보_얻기(MLSV_YMD)
# print(f"{ROOT}/library/skeleton.png")
사진 = Image.open(f"{ROOT}/library/skeleton.png")
#if vts.get_vts_true_or_false() == True: 사진 = Image.open(f'{ROOT}/library/skeleton-vts.png')
급식_폰트 = ImageFont.truetype(font, 56)
세부_폰트 = ImageFont.truetype(font, 24)
제목요소 = ImageDraw.Draw(사진)
for i, line in enumerate(reversed(급식.split('\n'))):
제목요소.text((75, 930 - i * 60), line, font=급식_폰트, anchor="ls", fill=(255, 255, 255))
세부요소 = ImageDraw.Draw(사진)
세부요소.text((945, 110), f"{MLSV_YMD[:4]}{MLSV_YMD[4:6]}{MLSV_YMD[6:8]}", font=세부_폰트, anchor="rs", fill=(255, 255, 255))
#세부요소.text((755, 80), f"2025년 01월 01일", font=세부_폰트, fill=(255, 255, 255))
세부요소.text((945, 220), f"{급식_칼로리_얻기(MLSV_YMD)}", font=세부_폰트, anchor="rs", fill=(137, 202, 255))
if vts.VTS임(MLSV_YMD):
세부요소.text((830, 225), "with V.T.S.", font=세부_폰트, fill=(205, 173, 148))
사진.save(f'{ROOT}/temp/{MLSV_YMD}.png')
print("🍲 | Meal Info Image Saved")
def 학사일정_얻기():
print("서코가고싶다발동")
오늘 = datetime.now() + timedelta(days=1)
print("오늘은 사실", 오늘, "이였다")
with open(f"{ROOT}/library/event/{오늘.strftime('%Y')}.json") as json_file:
json_data = json.load(json_file)
마지막_업데이트 = json_data["last_update"]
학사일정 = json_data["event"][str(오늘.strftime('%m'))]
# print(f"{ROOT}/library/skeleton.png")
사진 = Image.open(f"{ROOT}/library/skeleton_schoolevent.png")
#if vts.get_vts_true_or_false() == True: 사진 = Image.open(f'{ROOT}/library/skeleton-vts.png')
학사일정_폰트 = ImageFont.truetype(font, 48)
세부_폰트 = ImageFont.truetype(font, 24)
제목요소 = ImageDraw.Draw(사진)
for i, 일정 in enumerate(reversed(list(학사일정.values()))):
if 일정['data']:
start_date = datetime.strptime(str(일정['start']), "%Y%m%d")
end_date = datetime.strptime(str(일정['end']), "%Y%m%d")
if start_date == end_date:
date_text = f"{start_date.day}"
elif start_date.year != end_date.year:
date_text = f"{start_date.year}{start_date.month}{start_date.day}일 ~ {end_date.year}{end_date.month}{end_date.day}"
elif start_date.month != end_date.month:
date_text = f"{start_date.month}{start_date.day}일 ~ {end_date.month}{end_date.day}"
else:
date_text = f"{start_date.day}일 ~ {end_date.day}"
제목요소.text((75, 930 - i * 60), f"{date_text} : {일정['data']}", font=학사일정_폰트, anchor="ls", fill=(255, 255, 255))
세부요소 = ImageDraw.Draw(사진)
세부요소.text((810, 80), f"{오늘.strftime('%Y')}{오늘.strftime('%m')}", font=세부_폰트, fill=(255, 255, 255))
def 포맷팅된_날짜(날짜:str):
return f"{날짜[:4]}{날짜[4:6]}{날짜[6:8]}"
세부요소.text((591, 200), f"마지막 업데이트 : {포맷팅된_날짜(마지막_업데이트)}", font=세부_폰트, fill=(137, 202, 255))
사진.save(f"{ROOT}/temp/{오늘.strftime('%Y')}_{오늘.strftime('%m')}.png")
print("🍲 | Meal Info Image Saved")
return f"{ROOT}/temp/{오늘.strftime('%Y')}_{오늘.strftime('%m')}.png"
def 스토리_얻기(MLSV_YMD:str):
print("이건 왜?")
# 1:1 to 9:16 temp/{MLSV_YMD}.png
사진 = None
사진 = Image.open(f"{ROOT}/temp/{MLSV_YMD}.png")
가로, 세로 = 사진.size
비율 = 9 / 16
가로_비율 = 가로 / 세로
if 가로_비율 < 비율:
새_가로 = int(세로 * 비율)
새_세로 = 세로
새_사진 = Image.new("RGB", (새_가로, 새_세로), (10, 10, 10))
사진 = 사진.resize((int(가로 * 0.85), int(세로 * 0.85)), Image.LANCZOS)
새_사진.paste(사진, (int((새_가로 - 사진.width) / 2), int((새_세로 - 사진.height) / 2)))
else:
새_가로 = 가로
새_세로 = int(가로 / 비율)
새_사진 = Image.new("RGB", (새_가로, 새_세로), (10, 10, 10))
사진 = 사진.resize((int(가로 * 0.85), int(세로 * 0.85)), Image.LANCZOS)
새_사진.paste(사진, (int((새_가로 - 사진.width) / 2), int((새_세로 - 사진.height) / 2)))
새_사진.save(f'temp/{MLSV_YMD}-story.png')
print("🍲 | Story Info Image Saved")
def 디스코드(MLSV_YMD:str):
오늘급식 = 급식_정보_얻기(MLSV_YMD)
data = {
"content" : f"{MLSV_YMD[:4]}{MLSV_YMD[4:6]}{MLSV_YMD[6:8]}일 급식 정보",
"username" : "@today.isangjeong"
}
data["embeds"] = [
{
"description" : 오늘급식,
"title" : "인천상정중학교"
}
]
if vts.VTS임(MLSV_YMD):
data["content"] = f"{MLSV_YMD[:4]}{MLSV_YMD[4:6]}{MLSV_YMD[6:8]}일 급식 정보 | with V.T.S."
print("🏓 | Sending Payload")
result = requests.post(WEBHOOK_URL, json = data)
print("🏓 | Payload Sent")
try:
result.raise_for_status()
except requests.exceptions.HTTPError as err:
print(err)
else:
print(f"✨ | Payload successfully, code {result.status_code}.")

View file

@ -1,37 +0,0 @@
import requests, datetime
from bs4 import BeautifulSoup
import openpyxl, os, json
with open('./config.json') as json_file:
json_data = json.load(json_file)
KEY = json_data['KEY']
ROOT = json_data['ROOT']
font = f"{ROOT}/library/Pretendard-Bold.ttf"
WEBHOOK_URL = json_data['WEBHOOK_URL']
path = f'{ROOT}/temp/downloaded_file.xlsx'
def download():
response = requests.get("https://f.imnya.ng/.today.isangjeong/vts.xlsx")
with open(path, "wb") as file:
file.write(response.content)
def detect_vts_day():
# 엑셀 파일 로드
ws = openpyxl.load_workbook(path, data_only=True).active
# 노란색 색상 코드
yellow_color = "FFFFFF00"
# 색상이 있는 셀 확인
vts_days = []
for row in ws.iter_rows(min_row=5, max_row=5):
for cell in row:
if cell.fill and cell.fill.start_color.index == yellow_color:
vts_days.append(cell.value.split(" ")[1].replace("", "").replace("(", "").replace(")", "")[:-1])
return vts_days
def VTS임(MSLV_YMD:str):
return str(MSLV_YMD)[-2:] in detect_vts_day()

1914
app/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

18
app/package.json Normal file
View file

@ -0,0 +1,18 @@
{
"name": "app",
"module": "index.ts",
"type": "module",
"private": true,
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@napi-rs/canvas": "^0.1.70",
"cheerio": "^1.0.0",
"igramapi": "^1.48.3",
"inquirer": "^12.6.0"
}
}

28
app/playground.ts Normal file
View file

@ -0,0 +1,28 @@
//import { Discord } from "./lib/discord";
const YYMMDD = new Date().toISOString().slice(0, 10).replace(/-/g, "").toString();
console.log(YYMMDD);
//Discord("20250509")
/*async function run() {
console.time("Post");
await CreateImage.Post(YYMMDD);
console.timeEnd("Post");
console.time("Story");
await CreateImage.Story(YYMMDD);
console.timeEnd("Story");
}
run();
*/
//import { CreateImage } from "./lib/image";
//CreateImage.PostSchedule()
const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);
// 내일이 1일이면
console.log(tomorrow.getDate());

View file

@ -1,81 +0,0 @@
import argparse
from instagrapi import Client
import json, os
from datetime import datetime, timedelta
import library.lib as lib
import library.vts as vts
# Start timing the script
start_time = datetime.now()
# Argument parser for command-line options
parser = argparse.ArgumentParser(description="Upload meal information to Instagram and Discord.")
parser.add_argument('--today', action='store_true', help="Use today's date instead of tomorrow's date for the MLSV_YMD timestamp.")
args = parser.parse_args()
# Set MLSV_YMD date based on the --today option
if args.today:
MLSV_YMD = datetime.now().strftime('%Y%m%d')
else:
MLSV_YMD = (datetime.now() + timedelta(days=1)).strftime('%Y%m%d')
print("🍪 | Retrieving saved account information.")
cl = Client(json.load(open('./temp/auth/cookies.json')))
#cl.set_proxy("socks5h://localhost:9999")
print("🍪 | Account information was successfully retrieved.")
print("📅 | Getting VTS Table")
vts.download()
print("📅 | VTS Table Downloaded")
print("📅 | Getting MLSV_YMD Timestamp")
print("📅 | Date:", MLSV_YMD)
# Check if today is the last day of the month
오늘 = datetime.today()
내일 = 오늘 + timedelta(days=1)
if 내일.month != 오늘.month:
print("📅 | Today is the last day of the month.")
print("📆 | Uploading School Event Post")
학사일정_경로 = lib.학사일정_얻기()
cl.photo_upload(
학사일정_경로,
caption=f"#인천상정중학교 #상정중학교 #학사일정 \n{내일.strftime('%Y')}{내일.strftime('%m')}월 학사일정",
extra_data={'is_paid_partnership': False}
)
print("📆 | School Event Post Uploaded")
else:
print("📅 | Today is not the last day of the month.")
print("🍲 | Getting Meal Info Image")
lib.얻기(MLSV_YMD)
lib.스토리_얻기(MLSV_YMD)
print("📸 | Uploading Story")
cl.photo_upload_to_story(
path=f"temp/{MLSV_YMD}-story.png",
caption=f"#인천상정중학교 #상정중학교 #급식 \n{MLSV_YMD}일자 급식",
extra_data={'is_paid_partnership': False}
)
print("📸 | Story Uploaded")
lib.얻기(MLSV_YMD)
print("🖼️ | Uploading Post")
cl.photo_upload(
f"temp/{MLSV_YMD}.png",
caption=f"#인천상정중학교 #상정중학교 #급식 \n{MLSV_YMD}일자 급식",
extra_data={'is_paid_partnership': False}
)
print("🖼️ | Post Uploaded")
print("🗨️ | Uploading at Discord")
lib.디스코드(MLSV_YMD)
print("🗨️ | Uploaded at Discord")
print(f"📆 | Today Date : {MLSV_YMD}")
print("🎉 | All tasks completed.")
# Calculate running time
print("🕒 | Running Time:", datetime.now() - start_time)

View file

@ -1,33 +1,3 @@
#!/bin/bash cd /code/app
cd /root/today.isangjeong/app
# If doesn't have temp folder, create it bun ./index.ts
if [ ! -d "temp" ]; then
mkdir temp
fi
if [ ! -d "temp/auth" ]; then
mkdir temp/auth
fi
echo "Debug: Script started at $(date)" >> ./temp/debug.log
echo "Debug: Current directory is $(pwd)" >> ./temp/debug.log
echo "Debug: User is $(whoami)" >> ./temp/debug.log
echo "Debug: Environment variables:" >> ./temp/debug.log
env >> ./temp/debug.log
# If doesn't have temp/cookies.json, create it
if [ ! -f "./temp/auth/cookies.json" ]; then
mkdir temp/auth
python3 library/init-auth.py
fi
# Set the log file name with the current date and time
log_file="./temp/$(date +%Y%m%d-%H%M%S).log"
# Run the Python script with or without --today and output to both the console and log file
if [[ "$1" == "--today" ]]; then
python3 run.py --today | tee "$log_file"
else
python3 run.py | tee "$log_file"
fi

View file

@ -1,10 +0,0 @@
import library.lib as 라이브러리
#라이브러리.얻기("20250314")
#라이브러리.스토리_얻기("20250307")
#라이브러리.얻기("20250306")
#라이브러리.스토리_얻기("20250306")
import library.lib as lib
lib.얻기("20250401")

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

View file

@ -1,7 +0,0 @@
import library.lib as lib
from datetime import datetime, timedelta
MLSV_YMD = str((datetime.now() + timedelta(days=0)).strftime('%Y%m%d'))
lib.얻기("20241108")
lib.스토리_얻기("20241108")

28
app/tsconfig.json Normal file
View file

@ -0,0 +1,28 @@
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}

1
cron Normal file
View file

@ -0,0 +1 @@
0 22 * * * /code/app/run.sh

View file

@ -1,2 +0,0 @@
0 22 * * * /usr/bin/bash /code/app/run.sh
5 4 * */2 6 /usr/bin/python3 /code/app/library/init-auth.py > /code/app/temp/auth-$(date +%Y%m%d-%H%M%S).log 2>&1

View file

@ -1 +0,0 @@
0 22 * * * /root/today.isangjeong/app/run.sh

View file

@ -1,3 +0,0 @@
services:
app:
build: .

View file

@ -1,18 +0,0 @@
annotated-types==0.7.0
beautifulsoup4==4.12.3
bs4==0.0.2
certifi==2024.8.30
charset-normalizer==3.3.2
et-xmlfile==1.1.0
idna==3.8
instagrapi==2.1.2
openpyxl==3.1.5
pillow==10.4.0
pycryptodomex==3.20.0
pydantic==2.7.1
pydantic_core==2.18.2
PySocks==1.7.1
requests==2.32.3
soupsieve==2.6
typing_extensions==4.12.2
urllib3==2.2.2