An open API service indexing awesome lists of open source software.

https://github.com/birdhouses/shopifyblogautomation

Upload Shopify Blog Posts in Bulk with Python.
https://github.com/birdhouses/shopifyblogautomation

automation blogs-app bulk-operation content-management python seo seotools shopify shopify-api shopify-app

Last synced: 7 months ago
JSON representation

Upload Shopify Blog Posts in Bulk with Python.

Awesome Lists containing this project

README

          

# ShopifyBlogAutomation
Create Shopify Blog posts in Bulk with Python! For generating blog posts, please have a look at: https://github.com/birdhouses/ArticleAI

## Setup
- Run pip install requirements.txt
- Copy `env.example` and rename to `.env`
- Fill in your details
- To find your Shopify store name for API interaction, go to Admin > Apps > Manage private apps. Your store name is in the Example URL. More details in Private apps.
- You need to enable custom app development for your Shopify Store
- https://help.shopify.com/en/manual/apps/app-types/custom-apps

## Usage
- Run `python3 run.py --blog_id your_blog_id --blog_dir your_blog_dir --image_dir image_dir`
- To find your blog ID, navigate to Online Store > Blog Posts. Click on the blog name. The number at the end of the URL in your browser's address bar is the blog ID.
- The blog dir should be a folder with .txt files for the blog posts.The title of the blog post is determined by the first line of the .txt file, prefixed with a singular #
- The image_dir is not required. The script will pick a random image from this directory when creating the blog post.

# Important
You can specify an `images_dir` when running the script. Every time a blog post is created, it will pick a random image from the directory.