Alright I worked my way through getting this to work as far as I could, and this is just beyond my Python ability.
Running this script:
#########################################
dont_like = ['food', 'girl', 'hot']
ignore_words = ['pizza']
friend_list = ['friend1', 'friend2', 'friend3']
InstaPy(username='xxxx', password='xxxx')
.login()
.set_do_comment(True, percentage=0)
.set_comments(['Cool!', 'Awesome!', 'Nice!'])
.set_dont_include(['friends here'])
.set_dont_like(dont_like)
.set_do_follow(True, percentage=0)
.unfollow_users(amount=100)
.set_ignore_if_contains(ignore_words)
.like_by_tags(['fit', '#muaythai'], amount=0)
.set_use_clarifai(enabled=False)
.end()
##########################################
getting this error:
##########################################
C:\Users\Matt>C:\Users\Matt\Desktop\InstaPy-master\quickstart.py
Traceback (most recent call last):
File "C:\Users\Matt\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Matt\Desktop\InstaPy-master\quickstart.py", line 10, in
InstaPy(username='xxxx', password='xxxx')
File "C:\Users\Matt\Desktop\InstaPy-master\instapy\instapy.py", line 31, in init
self.browser = webdriver.Chrome('./assets/chromedriver', chrome_options=chrome_options)
File "C:\Users\Matt\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 62, in init
self.service.start()
File "C:\Users\Matt\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Exception ignored in: <bound method Service.del of <selenium.webdriver.chrome.service.Service object at 0x0000023F33295FD0>>
Traceback (most recent call last):
File "C:\Users\Matt\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 173, in del
self.stop()
File "C:\Users\Matt\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 145, in stop
if self.process is None:
AttributeError: 'Service' object has no attribute 'process'