Python script/bot to automatically scrape data from thisworddoesnotexist.com made by Thomas Dimson and upload them to Instagram.
There are two easy ways to use the script.
- Clone project then input your Instagram data and run "bot.py". Running the script will cause it to act like a bot which periodically fetches the data and publishes stuff on the inserted profile.
username, password = "INSTAGRAM USERNAME", "INSTAGRAM PASSWORD"
postCaption = "INSTAGRAM POST CAPTION"
scheduleMinutes = *INSERT NUMBER OF MINUTES*
pictureSize = (width, height)
outputFileName = "outputFileName.jpg"
- Clone project and edit "bot.py" to your liking. Removing the scheduler will cause the script to no longer act like a bot.
# Schedule
schedule.every(scheduleMinutes).minutes.do(main)
while True:
schedule.run_pending()
time.sleep(1)
The "requirements.txt" file contains any Python dependencies. You can install them by running this command:
pip3 install -r requirements.txt
- Requests - HTTP library for Python.
- BeautifulSoup4 - HTML documents analysis.
- PIL - Python Image Library.
- Instabot - Instagram Python API Wrapper.
- Schedule - Python job scheduling for humans.