https://github.com/etopuz/twitter-bot-with-selenium
bot tweets random pictures
https://github.com/etopuz/twitter-bot-with-selenium
beautifulsoup beautifulsoup4 bot python selenium twitter webscraping
Last synced: 2 months ago
JSON representation
bot tweets random pictures
- Host: GitHub
- URL: https://github.com/etopuz/twitter-bot-with-selenium
- Owner: etopuz
- License: mit
- Created: 2021-02-14T14:03:11.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-18T22:34:55.000Z (over 5 years ago)
- Last Synced: 2025-05-21T22:59:15.148Z (about 1 year ago)
- Topics: beautifulsoup, beautifulsoup4, bot, python, selenium, twitter, webscraping
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter Bot With Selenium
This bot is created with python and selenium. Tweets random picture and author of it. I used geckodriver for firefox webdriver.
- [geckodriver Repository](https://github.com/mozilla/geckodriver)
## Example Twitter Account
- [picassobot](https://twitter.com/picassobot1)
## Use
- You need to download webdriver for browser that you are using and you need to put exe file into your project folder.
- Used firefox webdriver in this project, if you want to use Chrome you need to make edits.
- You need to use account_info.txt file same as the example ->(email password) or (username password). There is only one blank line between email and password.
- If you want to host this bot in any server. You need to change variable IS_RUNNING_ON_SERVER (in main.py) to True.
- If you want to host local you need to automate with services of your operation system.
- Logging in only one time is enough, then program saves cookies and use cookies for opening twitter account. So twitter does not block account.
### Run
- python main.py
### Used External Libraries
- urllib
- requests
- BeautifulSoup
- selenium