Socket
Socket
Sign inDemoInstall

pytwot

Package Overview
Dependencies
7
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pytwot

A Synchronous python API wrapper for twitter's api


Maintainers
1

Readme

pytwot

This project is a fork of the now archived PyTweet

VERY IMPORTANT: This project is approved by the PyTweet devs themselves.

Another note: the support server given is support server for the original PyTweet as this is approved by the devs they requested the support server stay the same

Documentation Status


pytwot is a synchronous Python API wrapper for the Twitter API. It is filled with rich features and is very easy to use.

Installation

Windows

py -m pip install pytwot

Linux/MacOS

python3 -m pip install pytwot

Usage

Before using pytwot you have to setup an application here. For a more comfortable experience, you can create an application inside a project. Most endpoints require the client to have read, write and direct_messages app permissions and elevated access type. For more accessibility you can create a dev environment to support events and other premium endpoints. If you have any questions, please open an issue or ask in the official pytwot Discord.

import pytwot

client = pytwot.Client(
    "Your Bearer Token Here!!!", 
    consumer_key="Your consumer key here", 
    consumer_secret="Your consumer secret here", 
    access_token="Your access token here", 
    access_token_secret="Your access token secret here",
) #Before using pytwot, make sure to create an application in https://apps.twitter.com.

client.tweet("Hello world, Hello twitter!") #This requires read & write app permissions also elevated access type.

You can check in the examples directory for more example code.

Contribute

You can Contribute or open an issue regarding pytwot in our GitHub repository!

All files of this repo are protected and licensed with the MIT License, LICENSE File

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc