Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ravgeetdhillon/markdown-imgur-upload
Upload local images to Imgur and replace their reference in the Markdown file.
https://github.com/ravgeetdhillon/markdown-imgur-upload
automation content content-writing images imgur imgur-api markdown markdown-images python python-markdown
Last synced: 20 days ago
JSON representation
Upload local images to Imgur and replace their reference in the Markdown file.
- Host: GitHub
- URL: https://github.com/ravgeetdhillon/markdown-imgur-upload
- Owner: ravgeetdhillon
- License: mit
- Created: 2022-03-24T08:58:53.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T09:36:17.000Z (almost 3 years ago)
- Last Synced: 2024-11-21T09:46:27.043Z (3 months ago)
- Topics: automation, content, content-writing, images, imgur, imgur-api, markdown, markdown-images, python, python-markdown
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Markdown to Imgur Upload
This Python script uploades local images to Imgur and replaces their path with the remote URL in the Markdown.
## Usage
1. Clone the repository.
2. Run `pip install -r requirements-dev.txt`.
3. Copy `.env.example` to `.env` and add your `CLIENT_ID` from the Imgur API.
4. Create an `original.md` file and add your markdown to it.
5. Add your local images to `screenshots` directory and also update the path of your local images in `original.md` file so that the Python script can find them in the `screenshots` directory.
6. Run `python src/main.py` and a new `updated.md` will be created for you.