PyVoat

A very simple python wrapper for the Voat.co API.


License
MIT
Install
pip install PyVoat==0.0.1

Documentation

PyVoat

A simple python3 Wrapper for Voat.co's API

Getting Started

  1. Install PyVoat by entering "pip install PyVoat"
  2. Register an api key and obtain an access token from Voat.co
  3. Enjoy PyVoat!

Example

This is an example of how to use PyVoat from example.py

import json
import PyVoat
v = PyVoat.PyVoat("token","pubkey")

messages = v.getAllMessages()
user = v.getUser("healdb")
subverse = v.getSubverse("api")

Loop through all unread messages

for message in messages:
  print(message.author)
  print(message.body)
  print(user.getInfo())

Loops through each post in the subverse

submissions = subverse.getSubmissions()
for post in submissions:
  print(post.author)
  comments= post.getComments()
  for comment in comments:
      print(comment.body)