My journey to making a TWITTER BOT with PYTHON/SELENIUM and showing you how to do it

Keep going!

Are you going to sell the program or what?
yeah im planning on sell the program im not sure about the price but it will be lifetime for example 50$ and you can have it forever unlimited accounts etc also im thinking on something like half the price for the bot on the current state and the full price for the bot and all the upgrades of the future not sure though
 
Hello guys here is an update, this is the currently bot functions status

Features will be on green
To do will be on yellow
Know bugs will be on red
Finished today will be on blue
New functions added will be on orange
Bugs eliminated will be just deleted

  • login (obvious)
  • follow people
    • follow people based on keywords
    • follow people between time intervals
    • follow a certain number of people each interval
    • maximun daily follows
  • unfollow
    • unfollow people based on the time you followed them
    • unfollow people between time invervals
    • unfollow a certain number of people each interval
  • delete tweet
    • delete a certain number of tweets ( can also delete them all)
      • gets stuck when there is a retweet (simplest way to solve this will be deleting the retweet but i will make a more complex way)
  • tweet
    • schedule tweets for a certain time
  • get followers number
  • get following number
  • get tweet number
  • use proxy (only tested with public proxy)
  • retweet
    • retweet based on keyword
  • fav
    • fav based on keyword
  • reply to people
    • reply people that tweeted certain words (example "how do i do x thing" reply "you can use x program")
  • post picture
  • send dm
    • send dm when people follow you
  • copy tweets from accounts
  • copy pictures from accounts
  • change user agent
ive basically finished the unfollow after X days , it was easy i just store the people i follow on a queue with the day and month i followed them and i check is the date older than X days? if yes then unfollow that guy

also ive finished the retweet and fav people based on keyword

i need more functions to add guys so feel free to tell me your sugestions
 
yeah im planning on sell the program im not sure about the price but it will be lifetime for example 50$ and you can have it forever unlimited accounts etc also im thinking on something like half the price for the bot on the current state and the full price for the bot and all the upgrades of the future not sure though
You do realise you can't sell it on here?
 
You do realise you can't sell it on here?
im not selling it , this is a journey about making it
when the product its finished or polished enought if i want to sell it i will put it on the marketplace right?
but right now this is about making it only i just answered a question
 
im not selling it , this is a journey about making it
when the product its finished or polished enought if i want to sell it i will put it on the marketplace right?
but right now this is about making it only i just answered a question
I was just pointing out, no Biggie. You have a way to go before you can upgrade anyway
 
QUICK UPDATE
the bot its finally able to upload images , i got a little stuck there since i didnt knew how to exactly handle the upload window that comes up since i didnt wanted to directly send keys as if you were writing it with the keyword becouse it will be very bad if you are doing other things for example ,but i actually found a way around it wich may help other people and it ended up being pretty easy.
if you guys want to upload a picture just find the <input type=file> tag and sendkeys to it the path to the image.
have in mind that in python for example to write the path you have to use double slash like this "C:\\Users\\yourUser\\Desktop\\image.jpg"
so in my case the method was something like this
Code:
def uploadImg(path):
    #make sure you are on the principal page
    if (driver.current_url != "https://twitter.com/"):
        driver.get("https://twitter.com/")
    #wait for the item to be visible just so you dont have problems in the future
    WebDriverWait(driver, 10).until(EC.visibility_of_element_located((By.CLASS_NAME, "image-selector")))
    #search for the imput and send your image path
    driver.find_element_by_xpath("//input[@type='file']").send_keys(path)
    #wait for the tweet button to be visible
    WebDriverWait(driver, 10).until(EC.visibility_of_element_located((By.CLASS_NAME, "tweet-action")))
    #click the button
    driver.find_element_by_class_name("tweet-action").click()

the method still needs some details but its fine right now

also the bot is able to change user agent
now i will keep working today on the bot and probably finish some early stages of the methods to copy tweets and pictures from other accounts wich is kinda easy

btw even thought i have a lot of functions done a big chunk of them arent in the gui so im adding them slowly and modifying the gui on the way, i have some plans to make the gui more clear and simple
 
hey this is a nice journey man! I'm also learning python+ selenium these days! Keep this Journey Updated!
 
Which driver are you using for the bot? (chromedriver, geckodriver etc)
 
Which driver are you using for the bot? (chromedriver, geckodriver etc)
right now im using chromedriver

hey this is a nice journey man! I'm also learning python+ selenium these days! Keep this Journey Updated!
I will keep you guys updated for sure!
right now im working on the scraper for tweets and photos but im making it more complex so it can search for mostly anything (or thats my goal)
like people who are looking for a gym and are near X city
tweets on any language
fotos videos.... that has X number or retweets or favs
etc etc etc

your twitter bot sucks btw lol

good luck OP for your Journey :)

Thanks!

Good luck lol

If you are looking for feature ideas then I suggest you try the trial of TSupremacy and see its features

https://www.blackhatworld.com/seo/t...twitter-bot-3-day-free-trial-approved.674593/

i think i will add the account creation!
also im working on the scraper right now
 
right now im using chromedriver

Same here. I was going to use geckodriver but there's a bug that stops proxies from working.

Is there any downside to using chromedriver?

You might like this GUI thingy I found: https://github.com/chriskiehl/Gooey#examples (scroll down a bit to see example GUIs / features)

If has a lot of crazy built in stuff like a date chooser for scheduling:

f544756a-07c5-11e5-86d6-862ac146ad35.gif
 
your twitter bot sucks btw lol

good luck OP for your Journey :)

Over 10,000 users so far and a solid income for over 3 years says otherwise ;) btw lol

i think i will add the account creation!
also im working on the scraper right now

Account creation requires phone verification

Here is part of the list of collapsed twitter functions I can fit on my 1440p monitor: https://i.imgur.com/uxEDKrS.jpg

The main form is 11,000 lines alone, altogether the full bot is probably over 25,000 lines ;) just to give you an idea.
 
Little update
im working on the scraper and making it with http requests since you can search without being logged into twitter
that way i think you can scrape it much more faster and efficient
i dont know a lot about request and tracking the http requests so it took me a while to track the request to load more tweets (since you cant scroll doing the requests)


Same here. I was going to use geckodriver but there's a bug that stops proxies from working.

Is there any downside to using chromedriver?

You might like this GUI thingy I found: https://github.com/chriskiehl/Gooey#examples (scroll down a bit to see example GUIs / features)

If has a lot of crazy built in stuff like a date chooser for scheduling:

f544756a-07c5-11e5-86d6-862ac146ad35.gif
im currently using tkinter , its basic so you have to do the things you want but im really liking it you can find a lot of documentation of it in the internet

Over 10,000 users so far and a solid income for over 3 years says otherwise ;) btw lol



Account creation requires phone verification

Here is part of the list of collapsed twitter functions I can fit on my 1440p monitor: https://i.imgur.com/uxEDKrS.jpg

The main form is 11,000 lines alone, altogether the full bot is probably over 25,000 lines ;) just to give you an idea.

i just checked and you can make twitter accounts with email too, do they ask you for PV after the accounts its made?

Good luck mate

thanks!
 
You knw the biggest problem with twitter is ghosting. Once you start following the accounts get ghosted. How are you going to solve that.
 
Back
Top