add afis hebdo
This commit is contained in:
parent
81f4f0fd1a
commit
9b72ffe5e2
@ -3,7 +3,6 @@ import sendPostMastodon, {
|
|||||||
getArticlesFromDaysInRssFeed,
|
getArticlesFromDaysInRssFeed,
|
||||||
makeTitleContentFromRss,
|
makeTitleContentFromRss,
|
||||||
parseRssFeed,
|
parseRssFeed,
|
||||||
folderBlogPostsPreview
|
|
||||||
} from "./utils.mjs";
|
} from "./utils.mjs";
|
||||||
|
|
||||||
const afis_rss_feed_url = 'https://afis.org/rss.xml';
|
const afis_rss_feed_url = 'https://afis.org/rss.xml';
|
||||||
@ -13,7 +12,6 @@ async function postLink() {
|
|||||||
|
|
||||||
console.log("envoi de post des articles afis sciences publiés depuis " + days_back_in_rss_feed + " jours par le compte tykayn")
|
console.log("envoi de post des articles afis sciences publiés depuis " + days_back_in_rss_feed + " jours par le compte tykayn")
|
||||||
|
|
||||||
|
|
||||||
let parsedFeed = await parseRssFeed(afis_rss_feed_url)
|
let parsedFeed = await parseRssFeed(afis_rss_feed_url)
|
||||||
let articles = await getArticlesFromDaysInRssFeed(parsedFeed, days_back_in_rss_feed)
|
let articles = await getArticlesFromDaysInRssFeed(parsedFeed, days_back_in_rss_feed)
|
||||||
console.log('articles', articles)
|
console.log('articles', articles)
|
||||||
@ -32,11 +30,6 @@ async function postLink() {
|
|||||||
|
|
||||||
#afis #science #pseudoScience #hebdo`,
|
#afis #science #pseudoScience #hebdo`,
|
||||||
}
|
}
|
||||||
console.log("configPost.message", configPost.message)
|
|
||||||
console.log("configPost.image", configPost.image)
|
|
||||||
|
|
||||||
|
|
||||||
// console.log('process.cwd() + \'/assets/blog_posts_medias/\'', process.cwd() + '/assets/blog_posts_medias/')
|
|
||||||
sendPostMastodon(configPost)
|
sendPostMastodon(configPost)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user