DEV Community

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

Posted on

3

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

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

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

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay