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 bot for Ukrfans Discord server

Ukrfans Discord Bot Discord bot for Ukrfans Discord server. ๐Ÿ’ก Prerequisites Python โš™๏ธ Build & Run Create an .env file in the root directory and add t

3 Jun 24, 2022
Implement SAST + DAST through Github actions

Implement SAST + DAST through Github actions The repository is supposed to implement SAST+DAST checks using github actions against a vulnerable python

Syed Umar Arfeen 3 Nov 09, 2022
Fortnite Dumper for anyone's Save the World profiles.

Anyone's Fortnite Save the World Profile Dumper This program allows you to dump anyone's Fortnite Save the World Profiles. How to use it? After starti

PRO100KatYT 6 Apr 13, 2022
A Python Script to automate searching of available vaccination centers in the city and hence booking

Cowin Vaccine Availability Notifier Cowin Vaccine Availability Notifier takes your City or PIN code as an input and automatically notifies you via ema

Jayesh Padhiar 7 Sep 05, 2021
Maintained Fork of Jishaku For nextcord

Onami a debugging and utility extension for nextcord bots Read the documentation online. Fork Onami is a actively maintained fork of Jishaku for nextc

RPS 11 Dec 14, 2022
A Video Streaming Telegram Bot written in Python with Pyrogram and PyTgcalls

Video Stream Bot A Video Streaming Telegram Bot written in Python using Pyrogram and PyTgcalls Requirements Python 3.9 Telegram API Telegram Bot Token

Aarav Arora 61 Dec 10, 2022
Ridogram is an advanced multi-featured Telegram UserBot.

Ridogram Ridogram is an advanced multi-featured Telegram UserBot. String Session Collect String Session by running python3 stringsession.py locally or

Md. Ridwanul Islam Muntakim 134 Dec 29, 2022
Github-Checker - Simple Tool To Check If Github User Available Or Not

Github Checker Simple Tool To Check If Github User Available Or Not Socials: Lan

ู…ูŠุฎุงุฆูŠู„ 7 Jan 30, 2022
WhatsApp Multi Device Client

WhatsApp Multi Device Client

23 Nov 18, 2022
ๆ‘ฉๅฐ”ๅบ„ๅ›ญๆ‰‹ๆธธ่„šๆœฌ

ๆ‘ฉๅฐ”ๅบ„ๅ›ญ BlueStacks ่„šๆœฌ ๆ‰‹ๆธธไธŠ็บฟ๏ผŒๆƒ…ๆ€€ๅ†่ตท๏ผŒไฝ†้ขๅฏนๆธธๆˆไธญๆžฏ็‡ฅๆ— ๅ‘ณ็š„ๆฏๆ—ฅไปปๅŠกๅ’Œ่ต„ๆบ้‡‡้›†๏ผŒไฝ ๆ˜ฏๅฆ่ง‰ๅพ—่‚็–ผๅ‘ข๏ผŸ ๆœฌ้กน็›ฎ้€š่ฟ‡็”Ÿๆˆ BlueStacks ๆจกๆ‹Ÿๅ™จ็š„ๅฎ่„šๆœฌ๏ผŒๅธฎๅŠฉ็ŽฉๅฎถๆŠค่‚ใ€‚ ไฝฟ็”จ่„šๆœฌ่ฏท้˜…่ฏป ไฝฟ็”จๆ–นๅผ ๅ’Œๅฏนๅบ”็š„ ๅŠŸ่ƒฝๅŠ่ฏดๆ˜Ž ่”็ณป Telegram ้ข‘้“ @mole61 Telegram

WH-2099 43 Dec 16, 2022
Roblox-Account-Gen - A simple account generator not using paid solving services

Roblox Account Generator Star this if it helped to spread awareness! No 2captcha

x 1 Feb 17, 2022
๐Ÿค– Fast and simple bot to transform links from Amazon into a nice post with your referral link in Telegram ๐Ÿ›’

AmazonBot ๐Ÿค– Fast and simple bot to transform links from Amazon into a nice post with your referral link in Telegram ๐Ÿ›’ Prerequisites You need Python

Alternative Profit 3 Dec 25, 2022
Changes the Telegram bio, profile picture, first and last name to the song that the user is currently listening to.

TGBIOFY - Telegram & Spotify integration Changes the Telegram bio, profile picture, first and last name to the song that the user is currently listeni

elpideus 26 Dec 07, 2022
Python wrapper for the Intercom API.

python-intercom Not officially supported Please note that this is NOT an official Intercom SDK. The third party that maintained it reached out to us t

Intercom 215 Dec 22, 2022
Telegram bot using python

Telegram bot using python

Masha Kubyshina 1 Oct 11, 2021
EduuRobot Telegram bot source code.

EduuRobot A multipurpose Telegram Bot made with Pyrogram and asynchronous programming. Requirements Python 3.6+ An Unix-like operating system (Running

Amano Team 119 Dec 23, 2022
Intelligent Trading Bot: Automatically generating signals and trading based on machine learning and feature engineering

Intelligent Trading Bot: Automatically generating signals and trading based on machine learning and feature engineering

Alexandr Savinov 326 Jan 03, 2023
Smilecreator4 - This site is for people who want to hack or want to learn it!

smilecreator4 This site is for people who want to hack or want to learn it! Furthermore, this program does not work without turning off Antivirus or W

1 Jan 04, 2022
This Bot Can Upload Video from Link Of Pdisk to Pdisk using its API. @PredatorHackerzZ

๐๐๐ข๐ฌ๐ค ๐‚๐จ๐ง๐ฏ๐ž๐ซ๐ญ๐ž๐ซ ๐๐จ๐ญ Make short link by using ๐๐๐ข๐ฌ๐ค API key Installation ๐“๐ก๐ž ๐„๐š๐ฌ๐ฒ ๐–๐š๐ฒ ๐‘๐ž๐ช๐ฎ๐ข๐ซ๐ž๐ ๐•๐š๐ซ๐ข๐š๐›๐ฅ๐ž

ฯัั”โˆ‚ฮฑั‚ฯƒั 25 Dec 02, 2022
Pogodasbot - Telegram bot sending channel weather info

Pogodasbot - Telegram bot sending channel weather info

Qayrat Sultan 1 Dec 15, 2022