Giter Club home page Giter Club logo

m2m's Introduction

M2M or Medium to Markdown

A project to transform a Medium post into a Markdown file

Environment Variables

This project uses 2 environment variables: GITHUB_USERNAME and GITHUB_PASSWORD. They are used in the GistToCodeblock class to authenticate user in the Github API.

Copy the .sample-env and update the variables with your Github username and password

cp .sample-env .env

Requirements

Create your virtual environment

virtualenv m2menv

Activate your virtualenv

source m2menv/bin/activate

Run this command to install all required libraries

pip install -r requirements.txt

Usage

To do the Medium to Markdown transformation, call the core.py passing the post url

python m2m/core.py http://bit.ly/2FG5GgT

If you not pass the post url, the core.py will use the default post url

m2m's People

Contributors

dependabot[bot] avatar imteekay avatar wnma3mz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

m2m's Issues

Build a CLI

The idea is to facilitate the way we can use this Medium to Markdown transformation

CLI would be great solution for this challenge

Batch conversion

Input a file, each line is the url of an article, and the output file is named the article name.

Refactoring m2m

The core.py file has 3 different classes. It would be great to have 3 separate files and import all in the core.py file.

Update Readme

  • Write about .env & .sample-env
  • Write about requirements
  • Write about how to use it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.