https://github.com/iggredible/dev-fetch-articles
Get https://dev.to/ articles in markdown! 📖
https://github.com/iggredible/dev-fetch-articles
Last synced: about 1 month ago
JSON representation
Get https://dev.to/ articles in markdown! 📖
- Host: GitHub
- URL: https://github.com/iggredible/dev-fetch-articles
- Owner: iggredible
- Created: 2020-01-04T18:04:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T16:24:16.000Z (about 2 years ago)
- Last Synced: 2025-04-02T19:51:45.607Z (2 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dev.to fetch ✌️
We can agree that [dev.to](https://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](https://github.com/motdotla/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](https://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