Skip to main content

This package can be used to make your own twitter bot with less code

import the package using pip install

pip install simpletwitter

PyPi Link : https://pypi.org/project/simpletwitter/

Google Groups Link: https://groups.google.com/g/simpletwitter

Downloads Downloads Downloads Downloads

usage:

from simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
bot.like_tweet(hashtags) #like the twitte
bot.unlike_liked_tweets(5) #unlike the liked tweet
bot.tweet(tweetmessage) #put some tweet

Users Currently Using as of (03-10-2023):

Total Downloads Monthly Downloads Weekly Downloads
16,455 279 169

Current Version 1.2.6

Users Graph

image

Packages used

Tool Name Purpose
Selenium Chrome Automation
Feature Update 3 feature update added on 3rd October 2023
Update 1 Added function to retweet
Update 2 Added feature to like the top tweets of the particular hash tags
Update 3 Added Tech News feature to post news on twitter account
Update 4 Can able to post Linked in content into a tweet using AI summarizer tool from **Hugging Face.io**

Code Usage of Updates


Update 1
from simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
hashtags = ["#reactjs", "abipravi"]
bot.only_like_top_tweet(hashtags)
Update 2
from simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
hashtags = ["#reactjs", "abipravi"]
bot.retweet(hashtags)
Update 3

Post Tech News from NEWSAPI

from simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
no_of_news_to_be_posted = 1
# if no of tweets to be posted ==> 1 {Post 12 news} it will post '12' news for value =>> 1 <<=
x = bot.post_tech_news(no_of_news_to_be_posted)
Update 4

Post LinkedIn Content from URL into Twitter Tweet

from simpletwitter import SimpleTwitter
bot = SimpleTwitter(email, password, no_of_tweets, username)
bot.login()
bot.postLinkedIn(Url)

Features

  • Scrape Data for analytics
  • Tech News post in Twitter
  • Twitter APi also using Twitter API keys
  • Create a web Admin Dashboard for the Twitter Automation
  • Linked in to Twitter Post

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simpletwitter-1.3.0.tar.gz (6.9 kB view details)

Uploaded Source

File details

Details for the file simpletwitter-1.3.0.tar.gz.

File metadata

  • Download URL: simpletwitter-1.3.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for simpletwitter-1.3.0.tar.gz
Algorithm Hash digest
SHA256 62184dacc4f9e360057ff590c35534cf3f20eb253a0901d6e0fa924b9ae4fe8f
MD5 6cac985d5ace23c77531855ccef58dba
BLAKE2b-256 7d267cfd761cacbc2aa7d057ba5c9f32c4efbb9021bad77c1c0c3af70051c4f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page