Twitter-Bot-Scrape-DM-Users
This Python Bot Scrape Twitter User Followers & Send DM to the Scraped Users.Run Python Code
- Make sure first to download Python & this text editor Visual Studio Code
- Install all the necessary libraries using this one command: pip install -r requirements.txt
- You need to obtain API credentials from Twitter in order to access the Twitter API. You can do this by creating a developer account on the Twitter Developer website
- Add your own API credentials to the both python files
- For Scraping Twitter User Followers, type this following command: python twiko_scrape.py
- For Sending DM to the Scraped Users, make sure first that the user whose credentials you are using has granted your application the necessary permission of read-write-& send direct messages. Once you activate this option on your developer account. Then type this following command in order to send dm: python twiko_dm.py