Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dilawar/pywordpress
A command line Wordpress client to post and edit posts
https://github.com/dilawar/pywordpress
Last synced: about 2 months ago
JSON representation
A command line Wordpress client to post and edit posts
- Host: GitHub
- URL: https://github.com/dilawar/pywordpress
- Owner: dilawar
- License: mit
- Created: 2013-03-22T23:05:16.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T05:50:57.000Z (almost 10 years ago)
- Last Synced: 2023-03-22T15:28:30.655Z (almost 2 years ago)
- Language: Python
- Size: 2.24 MB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
twordpress
==========
A command line tool to manage your blogs on ``wordpress.com``.Configuration file
------------------Create configuration file ``~/.config/twordpress/config`` with following entry::
[blog0]
url=dilawarrajput.wordpress.com
name=Dilawar's Blog
user=dilawars
password=pass
[blog1]
name=Dilawar's Notes
url=dilawarnotes.wordpress.com
user=dilawars
password=abababaaatiIf you choose to store this file to some other location then you should pass
``--config path/to/twordpressrc`` like option to the ``twordpress`` command.Dependencies
------------A fork of the library
https://github.com/maxcutler/python-wordpress-xmlrpc/blob/master/docs/index.rst
is included in this version.You can install ``pandoc``. This application turn ``html`` to ``markdown``
format and vice-versa. I can do more but this is what we need. If ``pandoc`` is
not available then it uses a python script to turn html to text.Proxy support is added recently to ``python-wordpress-xmlrcp``. It reads
environment variable ``http_proxy``. If you are behind proxied network, then
``export http_proxy=proxy.something.net:1212`` in your bash. And we are good to
go.
3. Fetch posts
--------------
Following commands fetches post::twordpress --blog 1 --fetch all
twordpress --blog 0 --fetch "Python is awesome"
twordpressFirst command will download all posts and pages from ``blog1``. And second will
download all posts which matches the given query from ``blog0``. Third command
will download most recent entries from default blog (``blog0``). Currently it
does not download media.
Each post gets its own directory and two files ``conetent.md`` and
``content.html`` are created. Edit markdown file and run the following command
to update the post.4. Updating post
----------------Following command update the blog. ::
$twordpress --blog 0 --update path_to_new_content.md
5. Create new post
------------------
This command post a new post::
$twordpress --blog 1 --new new_blog.mdThe new blog is written in markdown format but a meta-data has to be prefixed.
This is how your blog file should look like.::---
title: This is title of my awesome post
status: publish
tags: [some awesome tag, tag2]
categories: [catA, some_category]
---Here is content of blog in markdown format.
Too much has already been written. This ends my blog.