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
Discord-disnake - This package allows to use disnake without changing the discord namespace

This package is a shim This module allows to use disnake using discord namespace. This is not an independent library. Installing Python 3.8 or higher

5 Dec 13, 2022
discord.py bot written in Python.

bakerbot Bakerbot is a discord.py bot written in Python :) Originally made as a learning exercise, now used by friends as a somewhat useful bot and us

8 Dec 04, 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
The Python SDK for the BattleshAPI game

BattleshAPy The Python SDK for the BattleshAPI game Installation This library will be eventually going on PyPI, but until then, simply clone or downlo

Christopher 0 Apr 18, 2022
A reddit.com bot that will return reference links from official python documentation site for the standard library.

Python Docs Bot A reddit.com bot that will return documentation links for the library and language reference sections of the python docs website. The

Trevor Miller 2 Sep 14, 2021
Salmanul Farisx Bot With Python

Salman_Farisx_Bot How To Deploy Video Subscribe YouTube Channel Added Features Imdb posters for autofilter. Imdb rating for autofilter. Custom caption

1 Dec 23, 2021
OSINT tool to get information from a Github and Gitlab profile and find user's email addresses leaked on commits.

gitrecon OSINT tool to get information from a Github or Gitlab profile and find user's email addresses leaked on commits. 📚 How does this work? GitHu

GOΠZO 211 Dec 17, 2022
A free tempmail api for your needs!

Tempmail A free tempmail api for your needs! Website · Report Bug · Request Feature Features Add your own private domains Easy to use documentation No

dropout 10 Oct 26, 2021
This is a Innexia Chat Bot Open Source Code 🤬

⚡ Innexia ⚡ A Powerful, Smart And Simple Chat Bot ... Written with Python... Available on Telegram as @InnexiaChatBot ❤️ Support ⭐️ Thanks to everyone

Dark Cyber 4 Oct 02, 2022
A user reconnaisance tool that extracts a target's information from Instagram, DockerHub & Github.

A user reconnaisance tool that extracts a target's information from Instagram, DockerHub & Github. Also searches for matching usernames on Github.

Richard Mwewa 127 Dec 22, 2022
An API Client package to access the APIs for NBA.com

nba_api An API Client package to access the APIs for NBA.com Development Version: v1.1.9 nba_api is an API Client for www.nba.com. This package is mea

Swar Patel 1.4k Jan 01, 2023
A Discord Tool which checks for valid tokens and adds them to a server

Discord-Server-Botter A Discord Tool which checks for valid tokens and adds them to a server Usage Choice 1 is for checking tokens Choice 2 is for add

Bless 3 Jul 01, 2022
VideocompBot - This is TG Video Compress BoT. Prouduct By BINARY Tech 💫

VideocompBot - This is TG Video Compress BoT. Prouduct By BINARY Tech 💫

1 Jan 04, 2022
Tools for Twitter

Tools for Twitter Data This is a start of a collection of tools to use for collecting data via the Twitter API. If you do not have a Twitter Developer

DiscoverText 36 Oct 13, 2022
HinamiRobot - Telegram Group Manager Bot Written In Python Using Pyrogram

✨ HINAMI CHAN ✨ Telegram Group Manager Bot Written In Python Using Pyrogram. Rea

DARK LEGEND088 2 Jan 27, 2022
A simple Discord bot that notifies users of new Abitti versions

A simple Discord bot that notifies users of new Abitti versions. New features might be added later on. If you have good ideas, feel free to do a PR.

1 Feb 11, 2022
Twitter-bot - A Simple Twitter bot with python

twitterbot To use this bot, You will require API Key and Access Key. Signup at h

Bentil Shadrack 8 Nov 18, 2022
A full-featured Python wrapper for the Onfleet API.

UPDATE: Please use Onfleet's wrapper instead. This repository is not maintained. https://github.com/onfleet/pyonfleet --- Python-Onfleet   python-onfl

Lionheart Software 11 Jan 13, 2022
The AWS Lambda Serverless Blind XSS App

Ass The AWS Lambda Serverless Blind XSS App 利用VPS配置XSS平台太麻烦了,如果利用AWS的Lambda那不就是一个域名的事情么?剩下的环境配置、HTTPS证书、隐私性、VPS续费都不用管了, 所以根据xless重写了Lambda平台的XSS,利用sla

cocokey 2 Dec 27, 2021