Web Analytics

InstagramToMealie

⭐ 107 stars Simplified Chinese by JoTec2002

InstagramToMealie

一个简单的小转换器,可以将Instagram链接导入到Mealie中

INSTAGRAM TO MEALIE

license last-commit repo-top-language repo-language-count


目录

---

概述

使用InstagramToMealie,您只需输入Instagram帖子链接。该项目无缝集成Mealie API, 创建一个新的食谱,并附带相关的图片或视频资源。


快速开始

前提条件

安装

使用以下方法之一安装 InstagramToMealie:

从源码构建:

  • 克隆 InstagramToMealie 仓库:
❯ git clone https://github.com/JoTec2002/InstagramToMealie

  • 进入项目目录:
❯ cd InstagramToMealie

  • 安装项目依赖:
❯ pip install -r requirements.txt

  • 启动服务器:
❯ python -u main.py

使用提供的 Docker 镜像 jotec2002/instagramtomealie

通过 Docker Compose 与您的 Mealie 安装一起部署

使用会话文件进行身份验证的示例 compose.yaml 文件:

services:
  mealie:
    image: ghcr.io/mealie-recipes/mealie:v2.1.0
    container_name: mealie
    #Look up in the Mealie Docs for how to use Mealie
  InstagramToMealie:
    image: jotec2002/instagramtomealie
    ports:
      
  • 9001:9001
environment: INSTA_USER: "instagram username" MEALIE_API_KEY: "MEALIE API KEY" MEALIE_URL: "YOU LOCAL MEALIE INSTALLATION" # e.g http://mealie:9000 MEALIE_OPENAI_REQUEST_TIMEOUT: 60 # Optional, default: 60 volumes:
  • ./session-file:/app/session-file # The Instagram session file you created in the Prerequisites
depends_on: mealie: condition: service_healthy

使用用户名和密码环境变量进行身份验证的示例 compose.yaml 文件:

[!IMPORTANT]
为了使此方法有效,必须在账户上禁用两因素认证(TFA/TOTP)。
您可能需要多次尝试才能成功。请在其他系统/IP上同时登录,以避免触发Instagram的机器人检测。
这不是设置InstagramToMealie的推荐方式。

services:
  mealie:
    image: ghcr.io/mealie-recipes/mealie:v2.1.0
    container_name: mealie
    #Look up in the Mealie Docs for how to use Mealie
  InstagramToMealie:
    image: jotec2002/instagramtomealie
    ports:
      
  • 9001:9001
environment: INSTA_USER: "instagram username" INSTA_PWD: "Cleartext Instagram password" MEALIE_API_KEY: "MEALIE API KEY" MEALIE_URL: "YOU LOCAL MEALIE INSTALLATION" # e.g http://mealie:9000 MEALIE_OPENAI_REQUEST_TIMEOUT: 60 # Optional, default: 60 MEALIE_USE_INSTAGRAM_TAGS: true

自行构建 Docker 镜像

配置方法与使用提供的 Docker 镜像时相同,但在 compose.yaml 中替换为以下内容:

services:
  mealie:
    image: ghcr.io/mealie-recipes/mealie:v2.1.0
    container_name: mealie
    #Look up in the Mealie Docs for how to use Mealie
  InstagramToMealie:
+   build:
+     context: .
+     dockerfile: Dockerfile
+   image: instagramtomealie:latest
    ports:
      
  • 9001:9001

使用方法

{
  "recipe_slug": ,
  "error": ,
  "url": 
}

配置

MEALIE_URL:                          # Full URL of your Mealie instance (e.g http://mealie:9000, http://192.168.1.2:9000, http://my-mealie.com), required.
MEALIE_API_KEY:                      # API key used to authenticate with the Mealie REST API, required.
MEALIE_OPENAI_REQUEST_TIMEOUT: 60    # The timeout in seconds for OpenAI / Ollama requests, optional, default 60.
MEALIE_USE_INSTAGRAM_TAGS: true      # Embeds tags provided on the Instagram post as tags in Mealie, optional, default true.
INSTA_USER:                          # Instagram username (e.g mob_kitchen), required.
INSTA_PWD:                           # Instagram password in plaintext, optional (if using a session file).
INSTA_TOTP_SECRET:                   # Secret key used for 2FA authentication, optional, not recommended.
HTTP_PORT:                           # Port to use for the Flask HTTP server, optional, default 9001


贡献

贡献者图谱


许可证

本项目受 MIT 许可证保护。更多详情请参阅 LICENSE 文件。


致谢

---

--- Tranlated By Open Ai Tx | Last indexed: 2026-04-25 ---