This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const axios = require("axios"); | |
const cheerio = require("cheerio"); | |
const getExistingData = () => { | |
const existingData = JSON.parse( | |
fs.readFileSync("./static/ogp-data.json", "utf8") | |
); | |
return existingData; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
AspectRatio, | |
HStack, | |
Heading, | |
Image, | |
Stack, | |
Text, | |
Link, | |
} from "@chakra-ui/react"; | |
import React, { useMemo } from "react"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main() { | |
// 検索条件を設定 | |
const searchConditions = [ | |
"has:attachment", // 添付ファイルがある | |
"to:your_group_email@example.com" // 特定の宛先に送られた | |
]; | |
const searchQuery = searchConditions.join(" "); | |
const searchResults = GmailApp.search(searchQuery); | |
const messages = GmailApp.getMessagesForThreads(searchResults); |