DEV Community

Cover image for Capture Dev Community Articles in Clean Markdown with this Siri Shortcut
David Blue
David Blue

Posted on

Capture Dev Community Articles in Clean Markdown with this Siri Shortcut

Updated 10242022-162818


Social

  • Telegram

Capture a dev.to article in clean markdown via API.

This shortcut uses the Dev.to API's getArticleByPath endpoint to capture an individual article's data and (markdown-formatted) body contents into a new Drafts draft, formatted (by default) as such:

# title

- [**Source**](url)
- Byline: [byline](profile)
- Published: `davodtime`

---

cover

md
Enter fullscreen mode Exit fullscreen mode

By default, it also captures the entirety of the API response in a Data Jar jar specified at install.


Example Output

# Meme Monday 🎃

- [**Source**](https://dev.to/ben/meme-monday-1o5g)
- Byline: [Ben Halpern](https://dev.to/ben)
- Published: `10242022-074045`

---

[![Meme Monday 🎃](https://res.cloudinary.com/practicaldev/image/fetch/s--tZUC89vk--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/914owpwnth5neaasd5a7.png)](https://dev.to/ben/meme-monday-1o5g)

Welcome to another **Meme Monday** post! Today's cover image comes from [last week's thread](https://dev.to/ben/meme-monday-1299).

DEV is an inclusive space! Humor in poor taste will be downvoted by mods.
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
sylviafreeman profile image
SylviaFreeman

I think this is all we need! Very exciting stuff. Looking forward to testing. :slight_smile:

spell to get your boyfriend back