Giter VIP home page Giter VIP logo

foodjournal's Introduction

Food Journal: WordPress Post Generator

WordPress Post Generator is a Python script that allows users to create an automated WordPress blog with photos of the food they eat and brief descriptions of the food.

An example Food Journal WordPress site lives here.

I am also working on an Android app and a WXPython Desktop GUI.

Installation Instructions

  1. Create your own WordPress blog.
  2. Enter your meal contents in the Food Journal.xlsx file, with the contents of the meal separated by semicolons, like so: Eggs with cheese; Bacon. Make sure to retain the excel file's format, with the rows and column format as given. Feel free to add more rows, but additional columns (meal types) are not supported.
  3. Update config.ini such that it points to your blog, photos and the Excel file.
  4. Put some .jpg photos, taken on the day from the Excel file, in the photos directory. Do not worry about file names, they will be changed automatically upon uploading.
  5. Run $ python WordPressPostGenerator.py.

How it Works

Food Journal works best in conjunction with Dropbox Camera Upload, which automatically uploads photos from your phone to your Dropbox folder. This script checks for new entries in the Excel file, and for each date that does not have a post on your blog, it pulls photos from the photo directory. When you give your WordPress password, it autoformats and uploads the photos and descriptions to your blog, creating one or more posts (one post per day).

Known Bugs / Future Changes

  • Adding new meal types is not supported.
  • All photos added must have metadata indicating that it was taken on the day of the post.
  • Non-Excel file formats are not supported (Sorry!).
  • Incorrect formating of the Excel file will cause errors (Don't forget your semicolons!).

foodjournal's People

Contributors

schlosser avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.