Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
simple API wrapper to interact with twitter's unofficial API.
You can log in to Twitter using your account username, email address and password and use most features on Twitter, such as posting and retrieving tweets, liking and following users.
If you have any questions, please ask on Discord.
This library uses the unofficial API, therefore does not require an API key.
This library is completely free to use.
Whether you prefer synchronous or asynchronous programming,
Twikit supports both, providing flexibility for different use cases.
This library allows you to perform various Twitter-related actions, including:
Create tweets
Search tweets
Retrieve trending topics
etc...
pip install twikit
Define a client and log in to the account.
from twikit import Client
USERNAME = 'example_user'
EMAIL = 'email@example.com'
PASSWORD = 'password0000'
# Initialize client
client = Client('en-US')
# Login to the service with provided user credentials
client.login(
auth_info_1=USERNAME ,
auth_info_2=EMAIL,
password=PASSWORD
)
Create a tweet with media attached.
# Upload media files and obtain media_ids
media_ids = [
client.upload_media('media1.jpg'),
client.upload_media('media2.jpg')
]
# Create a tweet with the provided text and attached media
client.create_tweet(
text='Example Tweet',
media_ids=media_ids
)
Search the latest tweets based on a keywords
tweets = client.search_tweet('python', 'Latest')
for tweet in tweets:
print(
tweet.user.name,
tweet.text,
tweet.created_at
)
More Examples: examples
I would like to hear your thoughts and suggestions.
If you have any features you'd like to see added or encounter any issues,
please let me know in the issues section.
Additionally, if you find this library useful, I would appreciate it if you would star this repository or share this library⭐! Thank you very much!
FAQs
Twitter API wrapper for python with **no API key required**.
We found that twikit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.