Library for export webpage to Telegraph.


License
MIT
Install
pip install export-to-telegraph==0.0.150

Documentation

export_to_telegraph

Library for export webpage to Telegraph.

usage

import export_to_telegraph
export_to_telegraph.TOKEN = YOUR_TELEGRAPH_TOKEN
telegraph_url = export_to_telegraph.export(webpage_url)

If export failed, telegraph_url will be None.

how to generate token

Token is not needed if you don't plan to edit the generated telegraph.

Example code:

from html_telegraph_poster import TelegraphPoster
poster = TelegraphPoster()
api_response = poster.create_api_token(shortname, longname)
token = api_response['access_token']

how to install

pip3 install export_to_telegraph