Python scripts to help manage our WebFlow marketing site.
Accessing the API requires an API key for a specific site. These can be created under Sites -> Settings -> Integrations. The API key is saved in a .env
file.
Returns a list of post titles in csv format. Includes title, slug, and item id.
python3 get_post_titles.py COLLECTION_ID False [FILENAME]
Returns a list of post titles in csv format, including the text content of each post.
python3 get_post_titles.py COLLECTION_ID True [FILENAME]
Patches each post item listed in a CSV. Currently set up for CSVs with a header row of:
Title,Slug,Id,Updated Title
Note that the file path to the csv is required.
python3 get_post_titles.py COLLECTION_ID FILEPATH.csv
- Update to handle more than 100 items (chunking)