Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dms-codes/post-auto-wordpress-com
WordPress Blog Post Creator This Python script is designed to automate the process of creating and publishing blog posts on a WordPress website using the WordPress XML-RPC API. It reads data from an Excel file, generates post content, and publishes the blog posts on your WordPress site.
https://github.com/dms-codes/post-auto-wordpress-com
python wordpress xmlrpc
Last synced: 2 days ago
JSON representation
WordPress Blog Post Creator This Python script is designed to automate the process of creating and publishing blog posts on a WordPress website using the WordPress XML-RPC API. It reads data from an Excel file, generates post content, and publishes the blog posts on your WordPress site.
- Host: GitHub
- URL: https://github.com/dms-codes/post-auto-wordpress-com
- Owner: dms-codes
- Created: 2022-11-02T03:41:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T08:14:19.000Z (over 1 year ago)
- Last Synced: 2023-10-01T09:36:49.586Z (over 1 year ago)
- Topics: python, wordpress, xmlrpc
- Language: Python
- Homepage: https://github.com/dms-codes/post-auto-wordpress-com
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WordPress Blog Post Creator
This Python script is designed to automate the process of creating and publishing blog posts on a WordPress website using the WordPress XML-RPC API. It reads data from an Excel file, generates post content, and publishes the blog posts on your WordPress site.
## Prerequisites
Before using this script, make sure you have the following:
- Python installed on your system.
- The `wordpress-xmlrpc` library installed. You can install it using `pip`:
```
pip install python-wordpress-xmlrpc
```
- A WordPress website with XML-RPC enabled. You will need the website URL, username, and password to connect to your WordPress site.## Configuration
In the script, you should configure the following variables:
- `HOME_URL`: Replace with the URL of your WordPress website.
- `USERNAME` and `PASSWORD`: Replace with your WordPress username and password.
- `HASHTAG_REPLACE_CHARS`: List of characters to be removed from the product title when generating hashtags.
- `COLUMNS`: Column names from your Excel file that correspond to the data you want to use in your blog posts.## Usage
1. Prepare your data in an Excel file (`data.xlsx`) with the appropriate columns.
2. Customize the script's configuration variables as mentioned above.
3. Run the script by executing the following command in your terminal:
```bash
python your_script_name.py
```4. The script will start creating and publishing blog posts based on the data from the Excel file.
5. It will generate hashtags based on the product title, create post content, and publish each post to your WordPress website.
6. The script will output progress information for each post, including the estimated time remaining.
7. The posts will be published on your WordPress site as drafts, and you can review and edit them before publishing them as final posts.
## Example
Suppose you have configured the script with the appropriate variables, and your `data.xlsx` file contains product information.
After running the script, it will start creating and publishing blog posts with titles, content, and hashtags based on the data from the Excel file.
## Security Note
Ensure that you keep your WordPress username and password secure, as they are used to access your WordPress site via the XML-RPC API.
## License
This script is provided under the [MIT License](LICENSE).
```Replace `"your_script_name.py"` with the actual name of your script. Customize the README.md file further if needed to include additional information or usage examples for your project.