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()
Owner
Roger Johnston
Roger Johnston
A Discord bot themed around the Swedish heavy metal band Sabaton! (Python)

A Discord bot themed around the Swedish heavy metal band Sabaton! (Python)

Evan Lundberg 1 Nov 29, 2021
A Discord Token Grabber/Stealer But It's in One Line of Coding

Discord-Token-Grabber-But-In-One-Line That's a Discord Token Grabber/Stealer But It's in One Line of Coding! The Name Says All 3

YoSoyAngi 2 Jan 11, 2022
Typed interactions with the GitHub API v3

PyGitHub PyGitHub is a Python library to access the GitHub API v3 and Github Enterprise API v3. This library enables you to manage GitHub resources su

5.7k Jan 06, 2023
A Discord chat bot for the Tardsquad guild (Discord name for server).

Tardsquad Discord Bot A Discord chat bot for the Tardsquad guild (Discord name for server). Resouces Discord Developer Portal A general tutorial for a

Tardsquad Quality Code Inc. 4 Jul 26, 2022
Telegram bot to trim and download videos from youtube.

Inline-YouTube-Trim-Bot Telegram bot to trim and download youtube videos Deploy You can deploy this bot anywhere. Demo - YouTubeBot Required Variables

SUBIN 56 Dec 11, 2022
Бот - Гуль для твоего телеграм аккаунта

Я - Гуль (бот), теперь работает в чатах Отблагодарить автора за проделанную работу можно здесь Помощь с установкой тут Установка на Андроид После уста

57 Nov 06, 2022
ALIEN: idA Local varIables rEcogNizer

ALIEN: idA Local varIables rEcogNizer ALIEN is an IDA Pro plugin that allows the user to get more information about ida local variables with the help

16 Nov 26, 2022
Telegram Bot to check covid vaccine slot availability on CoWin site

Cowin Assist Telegram Bot Check the bot here @cowinassistbot. This is a simple Telegram bot to Check slots availability Get an alert when slots become

32 Jun 21, 2022
Automate and Manage Telegram Channels

Channel Automation Bot @ChannelAutomateBot A star ⭐ from you means a lot to us! Telegram bot to automate and manage channels. Usage Deploy to Heroku T

Stark Bots 61 Dec 29, 2022
Asynchronous Python Wrapper for the GoFile API

Asynchronous Python Wrapper for the GoFile API

Gautam Kumar 22 Aug 04, 2022
Cogs for RedDiscord-Bot V3

Cogs v3 Disclaimer: This is an unapproved repo, meaning no one has formally reviewed this repo yet and any loss of data in your bot isn't my fault (An

Honkertonken 5 Nov 17, 2022
Discord bot built using Python. through this you can get information about the upcoming matches, scoreboard, live score

IPL-bot This is a Discord bot built using Python. through this you can get information about the upcoming matches, scoreboard, live score, and many mo

0 Dec 23, 2021
Design and build a wrapper for the Open Weather API current weather data service

Design and build a wrapper for the Open Weather API current weather data service that returns a city's temperature, with caching, also allowing for the temperature of the latest queried cities that a

Duan Rafael Ribeiro 1 Jun 27, 2022
This is a telegram bot built using the Oxford Dictionary API

Oxford Dictionaries Telegram Bot This is a telegram bot built using the Oxford Dictionary API Source: Oxford Dictionaries API Documentation Install En

Abhijith N T 2 Mar 18, 2022
doi, pubmed, arxiv.org的查询服务API接口,部署于vercel云函数

article-search-service doi, pubmed, arxiv.org的查询服务API接口,部署于vercel云函数 云函数 vercel,国内可能被qiang了。 DOI接口 POST https://article-search-service.vercel.app/api/

HyokaChen 2 Oct 10, 2021
Discord-selfbot - Very basic discord self bot

discord-selfbot Very basic discord self bot still being actively developed requi

nana 4 Apr 07, 2022
A continued fork of Disco

Orca Orca is an extensive and extendable Python 3.x library for the Discord API. orca boasts the following major features: Expressive, functional inte

RPS 4 Apr 03, 2022
The bot I used to win a 3d printing filament giveaway.

Instagram-CommentBot-For-Giveaways This is the bot I used to win a 3d printer filament giveaway on Instagram. Usually giveaways require you to tag oth

Esad Yusuf Atik 1 Aug 01, 2022
Python client for Vektonn

Python client for Vektonn Installation Install the latest version: $ pip install vektonn Install specific version: $ pip install vektonn==1.2.3 Upgrad

Vektonn 16 Dec 09, 2022
procedurally-generated catppuccin wallpapers

Catppuccin Wallpapers I was in need of wallpapers conforming to the catppuccin colorscheme. So, I wrote a simple script to iteratively generate a set

daylin 11 Nov 29, 2022