Giter Club home page Giter Club logo

wordpress_templates's Introduction

wordpress_templates

Filling in template posts to generate new posts in WordPress

wp_oauth.json requires:

  • client_id = provided by developer.wordpress.com/apps
  • client_secret = provided by developer.wordpress.com/apps
  • username = WP Username
  • password = WP Password
  • grant_type = "password"

I'm still not sure how to generate valid OAuth connection from CLI for a WP App

wp_site.json requires:

  • site = site URL or site ID#
  • template = template post ID

This code is all specific to my use case at https://de.kabit.club

template_verb.py

Requires a german verb as its only argument. Looks up english translation and verb present tense conjugations on dict.leo.org and gets URL info to fill out the wordpress template specified (private or public post in a WP domain you control). Also verifies whether the verb already exists (may need updates for compound verbs with one part already included or vice versa)

ganki.py

Initial work with google authentication and Anki decks. Changes to subdirectory auth/ (excluded in .gitignore). This directory must contain a client_secrets.json file pointing to a Google Drive API Application. Credential tokens are also saved in this directory. Credentials use remote code verification to allow interactive authorization from an ec2 instance.

Downloads the latest anki deck and the full collection into the data/ directory (excluded in .gitignore).

Next steps

  • Automatically generate an anki deck for these items. The deck should have card GUIDs that are stable, so regenerating the deck does not duplicate / destroy card history. Anki deck to be stored in this repo or at https://de.kabit.club
  • Write classes for Leo dictionary parsing and the various API calls I make. At this point it's growing to a level where I need to make it at least a little modular. It would be nice to grab all conjugations from the dictionary, too. It would be even better to start caching that in my own database (flat files for now, probably - though a local sql database could also work ok)

wordpress_templates's People

Contributors

kabittarah 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.