https://github.com/ztf666/twitter-bot
A small python bot that automates the process of login in twitter . Send follow requests from the suggestions tab . Follow people based on a given #Hashtag . Likes tweets based on a given #Hashtag .
https://github.com/ztf666/twitter-bot
selenium-python selenium-webdriver twitter-bot
Last synced: 2 months ago
JSON representation
A small python bot that automates the process of login in twitter . Send follow requests from the suggestions tab . Follow people based on a given #Hashtag . Likes tweets based on a given #Hashtag .
- Host: GitHub
- URL: https://github.com/ztf666/twitter-bot
- Owner: ZTF666
- License: mit
- Created: 2020-04-26T23:05:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T04:20:03.000Z (about 6 years ago)
- Last Synced: 2025-10-23T22:39:56.054Z (8 months ago)
- Topics: selenium-python, selenium-webdriver, twitter-bot
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TweetBot
A small python bot that automates the process of login in twitter .
Send follow requests from the suggestions tab .
Follow people based on a given #Hashtag .
Likes tweets based on a given #Hashtag .
## THIS IS A WiP !!!!!!!!
```
Since this is still experimental , things my change or be a bit buggy .
Once fully finished , this section will be deleted.
```
## How to use
- **Install**
```python
pip install selenium
```
- **Download**
💿 [ChromeDriver](http://chromedriver.chromium.org/) 💿
```
👇👆
```
🦊🦎 [GeckoDriver](https://github.com/mozilla/geckodriver/releases) 🦎🦊
```
If you're using windows , you may want to put the .exe in the same folder as the script.
At least that's how i do it.
```
```
In the LOGIN function , at the end of it call one of the 4 functions that you want to execute .
The functions are :
# TwitterScript.SearchHashTag(self)
# TwitterScript.Follow(self)
# TwitterScript.FollowByHashtag(self)
# TwitterScript.Unfollow(self)
```
## Functionalities
```
Functionalities implemented so far :
LOGIN ✔️
FOllOW ✔️
LIKE TWEETS ✔️
SEARCH BY HASHTAG ✔️
UNFOLLOW ✔️
RETWEET ❌
```
**Likes**
Tweaks & optimisation :
>
You can optimise the scrolls to get more tweets this by changing the number .
> Line 50
```python
for i in range(1,3):
```
>
You can optimise the number of likes by changing the number .
> For testing purposes this only likes 4 posts
> Line 56
```python
for X in range(1,5):
```
**Follow**
Tweaks & optimisation :
>
You can optimise the scrolls to get more profiles this by changing the number .
> Line 68
```python
for i in range(1,5):
```
>
You can optimise the number of follow requets by changing the number .
> For testing purposes this only follows 8 people and stops
> Line 73
```python
for X in range(1,9):
```
>
This link should be altered , put your own id instead of mine in the creds.py
```python
self.driver.get('https://twitter.com/i/connect_people?user_id=YOUR_PROFILE_ID_GOES_HERE')
```
**Credentials**
```
As any other file containing sensitive data, credentials.py contains :
```
```python
login = 'PHONE_EMAIL_OR_USERNAME'
pwd = 'PASSWORD'
hashtag='YOUR HASHTAG HERE'
id='YOUR_TWITTER_ID
```
```
Make sure to change those before launching .
```
## LIMITATIONS :
```
The script bugs out from time to time depending on your internet speed .
This is not a perfect script , this have been made with basic knowledge .
The function SLEEP() , has high intervals because of my 3rd world internet , 💛 4mbps 💛 .
You should adapt it to your needs .
```
## Support
```
Any help improving this and adding more stuff is welcome ! .
```
## Contact me
```
you can contact me at ZTF666@protonmail.ch or via my portfolio
```
## License
**🐤TweetBot** released under the [MIT](LICENSE) License.
```
Made with 💘 by a 👨💻 on a 💻 | 2020 | ZTF666
```