Instagram-Bot——Instagram下载机器人

前言

因为Instagram的限制,我们无法直接下载其内容,因此有很多相关项目,比如在桌面浏览器使用很方便的theus/instantgram,还有本文要介绍的Instagram-Bot

变量

Telegram

Instagram

安装

cd /usr/local/share/
git clone https://github.com/subinps/Instagram-Bot
cd Instagram-Bot
pip3 install -r requirements.txt
# 在config.py中设置合适的变量
python3 main.py

测试无误后Ctrl+C结束运行。

守护

chown -R nobody:nogroup /usr/local/share/Instagram-Bot
vi /etc/systemd/system/instagram-bot.service

systemd文件示例如下:

[Unit]
Description=Instagram-Bot service
Wants=network.target network-online.target
After=network.target network.service network-online.target

[Service]
Type=simple
User=nobody
WorkingDirectory=/usr/local/share/Instagram-Bot
ExecStart=/usr/bin/python3 /usr/local/share/Instagram-Bot/main.py
RestartPreventExitStatus=23
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

启动

systemctl enable instagram-bot.service --now
实用教程

Hysteria流量转发记录

2022-3-7 9:15:47

实用教程

Emby Premiere破解方法

2024-1-18 16:09:28

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索