How to update FC2 blog etc. using XMLRPC with python

Here is an example of updating an fc2 blog using XMLRPC in python. I think it's very convenient when you want to post a blog automatically.

import xmlrpc.client
#Domain used by xmlrpc
DOMAIN = "http://blog.fc2.com/xmlrpc.php"
#BLOG for use with xmlrpc_ID
BLOG_ID = ""
#USERNAME for use with xmlrpc
USERNAME = "[email protected]"
#PASSWORD used in xmlrpc
PASSWORD = "xxxxx"

contents = {}
contents["title"] = "title"
contents["description"] = "article"

proxy = xmlrpc.client.ServerProxy(DOMAIN)
proxy.metaWeblog.newPost(BLOG_ID, USERNAME, PASSWORD, contents, 1)

Recommended Posts

How to update FC2 blog etc. using XMLRPC with python
How to update Python Tkinter to 8.6
How to update with SQLAlchemy?
How to install python using anaconda
Python: How to use async with
How to get started with Python
How to calculate date with python
How to update Google Sheets from Python
How to work with BigQuery in Python
How to do portmanteau test with python
How to display python Japanese with lolipop
How to enter Japanese with Python curses
How to install python3 with docker centos
How to deal with OAuth2 error when using Google APIs from Python
How to upload with Heroku, Flask, Python, Git (4)
How to read a CSV file with Python 2/3
How to enjoy programming with Minecraft (Ruby, Python)
[REAPER] How to play with Reascript in Python
How to do multi-core parallel processing with python
Strategy on how to monetize with Python Java
[Python] How to draw multiple graphs with Matplotlib
[Python] How to read excel file with pandas
How to crop an image with Python + OpenCV
How to specify attributes with Mock of python
How to measure execution time with Python Part 1
How to use tkinter with python in pyenv
[TF] How to specify variables to update with Optimizer
[Python] How to handle Japanese characters with openCV
[Python] How to compare datetime with timezone added
How to measure execution time with Python Part 2
How to install Python
How to update easy_install
How to install python
How to update Spyder
How to convert / restore a string with [] in python
How to add help to HDA (with Python script bonus)
[Python] How to draw a line graph with Matplotlib
How to set up a Python environment using pyenv
How to scrape image data from flickr with python
How to do hash calculation with salt in Python
[Introduction to Python] How to iterate with the range function?
Explain in detail how to make sounds with python
How to auto-submit Microsoft Forms using python (Mac version)
How to upload with Heroku, Flask, Python, Git (Part 3)
How to run tests in bulk with Python unittest
[Python] How to specify the download location with youtube-dl
Easy way to scrape with python using Google Colab
How to measure mp3 file playback time with python
How to use python interactive mode with git bash
How to upload with Heroku, Flask, Python, Git (Part 1)
[Python] How to deal with pandas read_html read error
How to make a Python package using VS Code
How to upload with Heroku, Flask, Python, Git (Part 2)
How to exit when using Python in Terminal (Mac)
How to get mouse wheel verdict with Python curses
How to analyze with Google Colaboratory using Kaggle API
How to retrieve multiple arrays using slice in python.
[Introduction to Python] How to stop the loop using break?
[Python] How to rewrite the table style with python-pptx [python-pptx]
[Python] How to create a 2D histogram with Matplotlib
How to execute a command using subprocess in Python