Skip to content

Abipravi1/Twitter_bot_module

 
 

Repository files navigation

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

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 (05-07-2022):

Total Downloads Monthly Downloads Weekly Downloads
8,717 749 88

Users Graph

image

Packages used

Tool Name Purpose
Selenium Chrome Automation
Feature Update 2 feature update added on 28/11/2021
Update 1 Added function to retweet
Update 2 Added feature to like the top tweets of the particular hash tags

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)

Features

  • Scrape Data for analytics
  • Tech News post in twitter

About

Twitter bot module with few lines of code

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%