A GETTR API client written in Python.

Overview

GUTTR

A GETTR client library written in Python.

I rushed to get this out so it's a bit janky. Open an issue if something is broken or missing.

Getting Started

Authenticate to Gettr and export the x-app-auth token and your user name as environment variables. You can find these values in the HTTP request header of any call to an api.gettr.com endpoint.

export user="foo"
export token="ey..."

Example

Retrive users posts

from guttr import *

# Instantiate the API endpoint class
p = Post()

# Retrieve the most recent 20 posts
print(p.get_user_posts(user_id='newsmax', maximum=20, direction="rev"))

# Retrieve the least recent 20 posts
print(p.get_user_posts(user_id='newsmax', maximum=20, direction="fwd"))

# Retrieve all posts
p.get_user_posts(user_id='newsmax', direction="rev", follow=True)

Content recommendation

from guttr import *

# Instantiate the API endpoint class
p = Suggest()

# Retrieve the top 10 suggestions
print(p.suggest_hashtag(maximum=10))

Search post content

from guttr import *

# Instantiate the API endpoint class
p = Post()

# Retrieve the top 10 suggestions
print(p.search_posts(query="how to insurrection", maximum=10))

API Methods

Alerts

p = Alert()
p.get_alert_count()
p.get_alerts()
p.get_alert_status()

Comments

p = Comment()
p.get_post_comments()
p.get_comment_comments()

Feed

FIX ME

Follow

p = Follow()
p.get_follow_status()
p.get_follows()
p.get_followers()
p.unfollow()
p.follow()

Like

p = Like()
p.like_post()
p.unlike_post()
p.like_comment()
p.unlike_comment()
p.get_post_likes_by_user

Post

p = Post()
p.get_post()
p.get_post_comments()
p.get_post_comments()
p.search_posts()

Watch

FIX ME

User

p = User()
p.get_mutes()
p.get_blocks()
p.mute()
p.unmute()
p.block()
p.unblock()
p.does_user_exist()
p.does_email_exist()

Suggest

p = Suggest()
p.suggest_hashtag()
p.suggest_user()
You might also like...
Telegram client written in GTK & Python
Telegram client written in GTK & Python

Meowgram GTK Telegram Client 🐱 Why Meogram? Meowgram = Meow + Gram :D Meow - Talking cats sound. It's a symbol of unique and user friendly UI of clie

Maestral is an open-source Dropbox client written in Python.
Maestral is an open-source Dropbox client written in Python.

Maestral - A light-weight and open-source Dropbox client for macOS and Linux

A discord webhook client written in Python.

DiscordWebhook A discord webhook client written in Python. Installation pip install webhook-client Example from webhook_client import WebhookClient, E

Discord-Lite - A light weight discord client written in Python, for developers, by developers.
Discord-Lite - A light weight discord client written in Python, for developers, by developers.

Discord-Lite - A light weight discord client written in Python, for developers, by developers.

Modern Desktop Jellyfin Client written in Python and Vue for the UI [WIP]

JellyPlayer Modern Jellyfin Client Installation Install Requirements: Install Python 3 Install dependencies Install node deps for frontend, go to Jell

Official Python client for the MonkeyLearn API. Build and consume machine learning models for language processing from your Python apps.

MonkeyLearn API for Python Official Python client for the MonkeyLearn API. Build and run machine learning models for language processing from your Pyt

🖥️ Python - P1 Monitor API Asynchronous Python Client

🖥️ Asynchronous Python client for the P1 Monitor

Python API Client for Close

Close API A convenient Python wrapper for the Close API. API docs: http://developer.close.com Support: [email protected] Installation pip install clos

Python client for CoinPayments API

pyCoinPayments - Python API client for CoinPayments Updates This library has now been converted to work with python3 This is an unofficial client for

Comments
  • Error with follow user

    Error with follow user

    {"_t":"xresp","rc":"ERR","error":{"_t":"xerr","code":"E_BAD_TOKEN","emsg":null,"args":[]}}

    opened by longisland 1
Owner
Roger Johnston
Roger Johnston
Clubhouse API written in Python. Standalone client included. For reference and education purposes only.

clubhouse-py is originally developed for the sake of interoperability. Standalone client is also created with very basic features, including but not limited to the audio-chat

null 1.7k Jan 5, 2023
wyscoutapi is an extremely basic API client for the Wyscout API (v2 & v3) for Python

wyscoutapi wyscoutapi is an extremely basic API client for the Wyscout API (v2 & v3). Usage Install with pip install wyscoutapi. To connect to the Wys

Ben Torvaney 11 Nov 22, 2022
Beyonic API Python official client library simplified examples using Flask, Django and Fast API.

Beyonic API Python official client library simplified examples using Flask, Django and Fast API.

Harun Mbaabu Mwenda 46 Sep 1, 2022
Python API Client for Twitter API v2

?? Python Client For Twitter API v2 ?? Why Twitter Stream ? Twitter-Stream.py a python API client for Twitter API v2 now supports FilteredStream, Samp

Twitivity 31 Nov 19, 2022
Dns-Client-Server - Dns Client Server For Python

Dns-client-server DNS Server: supporting all types of queries and replies. Shoul

Nishant Badgujar 1 Feb 15, 2022
Raphtory-client - The python client for the Raphtory project

Raphtory Client This is the python client for the Raphtory project Install via p

Raphtory 5 Apr 28, 2022
Drcom-pt-client - Drcom Pt version client with refresh timer

drcom-pt-client Drcom Pt version client with refresh timer Dr.com Pt版本客户端 可用于网页认

null 4 Nov 16, 2022
Async ready API wrapper for Revolt API written in Python.

Mutiny Async ready API wrapper for Revolt API written in Python. Installation Python 3.9 or higher is required To install the library, you can just ru

null 16 Mar 29, 2022
🚀 An asynchronous python API wrapper meant to replace discord.py - Snappy discord api wrapper written with aiohttp & websockets

Pincer An asynchronous python API wrapper meant to replace discord.py ❗ The package is currently within the planning phase ?? Links |Join the discord

Pincer 125 Dec 26, 2022
This an API wrapper library for the OpenSea API written in Python 3.

OpenSea NFT API Python 3 wrapper This an API wrapper library for the OpenSea API written in Python 3. The library provides a simplified interface to f

Attila Tóth 159 Dec 26, 2022