Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.4%) to scientific vocabulary
Repository
The founding API for X automation
Basic Info
- Host: GitHub
- Owner: tweepyio
- License: mit
- Language: Python
- Default Branch: main
- Size: 10.7 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Tweepy: Twitter for Python!
Twitter API v2 Tweepy Integration
This repository demonstrates how to post a tweet using the Tweepy library with Twitter API v2. The script authenticates using OAuth 2.0 Bearer Token and posts a simple tweet.
Prerequisites
- Python 3.6+
- Tweepy library
- Twitter Developer Account
Setup
1. Enable Developer Account
Follow the instructions to enable your developer account: Enable Developer Account
2. Login to Developer Account
Login to your developer account to get your API credentials: Developer Dashboard
3. Install Tweepy
Install the Tweepy library using pip:
sh
pip install tweepy
Usage
Replace Credentials
sh API_KEY = 'API_KEY' API_KEY_SECRET = 'API_KEY_SECRET' ACCESS_TOKEN = 'ACCESS_TOKEN' ACCESS_TOKEN_SECRET = 'ACCESS_TOKEN_SECRET' BEARER_TOKEN = 'BEARER_TOKEN'Run the Script run the script:
sh python main.py
To use the tweepy.asynchronous subpackage, be sure to install with the
async extra:
pip install tweepy[async]
You can also use Git to clone the repository from GitHub to install the latest development version:
git clone https://github.com/tweepy/tweepy.git
cd tweepy
pip install .
Alternatively, install directly from the GitHub repository:
pip install git+https://github.com/tweepy/tweepy.git
Python 3.7 - 3.11 are supported.
Links
Owner
- Login: tweepyio
- Kind: user
- Website: https://tweepy.io
- Twitter: tweepy_labs
- Repositories: 1
- Profile: https://github.com/tweepyio
The founding father of X automation
Citation (CITATION.cff)
cff-version: 1.2.0
title: Tweepy
message: "If you use Tweepy, please cite it using this metadata."
abstract: "Tweepy is a Python library for interfacing with Twitter's API."
authors:
- given-names: Harmon
alias: Harmon758
orcid: "https://orcid.org/0000-0002-2632-0921"
- given-names: Joshua
family-names: Roesslein
- name: "other contributors"
doi: 10.5281/zenodo.7259945
identifiers:
- description: "The concept DOI for the collection containing all versions of Tweepy"
type: doi
value: 10.5281/zenodo.7259945
- description: "The versioned DOI for version 4.12.0 of Tweepy"
type: doi
value: 10.5281/zenodo.7259946
- description: "The versioned DOI for version 4.12.1 of Tweepy"
type: doi
value: 10.5281/zenodo.7296886
- description: "The versioned DOI for version 4.13.0 of Tweepy"
type: doi
value: 10.5281/zenodo.7713369
- description: "The versioned DOI for version 4.14.0 of Tweepy"
type: doi
value: 10.5281/zenodo.7860636
keywords:
- Python
- Twitter
license: MIT
repository-code: 'https://github.com/tweepy/tweepy'
type: software
url: 'https://www.tweepy.org/'
GitHub Events
Total
- Push event: 3
- Create event: 2
Last Year
- Push event: 3
- Create event: 2