Skip to content

iggredible/dev-fetch-articles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

dev.to fetch โœŒ๏ธ

We can agree that dev.to is the best dev spot in the world. What if you want to cross-post your dev articles into your own personal blog site, but too lazy to copy-paste each post? ๐Ÿ˜ด

Now you can fetch all your DEV posts in markdown easily! ๐Ÿ˜ฑ

Getting started

Clone the repo, install all dependencies, and create content/ directory in project root. The files will go in there

git clone https://github.com/iggredible/dev-fetch-articles.git
cd dev-fetch-articles
npm install
mkdir content
echo "DEV_KEY={YOUR_DEV_KEY}" >> .env
// replace {YOUR_DEV_KEY} with your dev key values from the dev.to site

This script uses dotenv to store your DEV_KEY info. Create a .env file in project root and add DEV_KEY=YOUR_DEV_KEY_HERE (you can find your DEV_KEY inside Settings -> Account on dev.to site).

Usage

Easy! Just run npm run fetch-dev. You will find all your articles inside the newly created content/ directory. You can use this script into your app or use this script to generate content that you can copy to your app.

Contributions

Any PR for improvements/ suggestions are more than welcome! โœŒ๏ธ

LICENSE

MIT ยฉ Igor Irianto

About

Get https://dev.to/ articles in markdown! ๐Ÿ“–

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published