ncs15 / InstagramBot

Selenium Instagram Bot
1 stars 1 forks source link

Error after login #1

Closed mcolus closed 4 years ago

mcolus commented 4 years ago
cursor.execute("SELECT * FROM viewed_users")
sqlite3.OperationalError: no such table: viewed_users
mcolus commented 4 years ago

I have solved the problem by changing the language in AgentLogic.py to English. In the class IGBot def init (self): the following is inserted:

self.language_button ='//*[@id="react-root"]/section/main/section/div[3]/div[3]/nav/ul/li[11]/span/select'
self.english_language ='//*[@id="react-root"]/section/main/section/div[3]/div[3]/nav/ul/li[11]/span/select/option[6]'

After closing the pop up the following is executed:

#Change Language
        try:
            webdriver.find_element_by_xpath(self.language_button).click()
            sleep(1)
            webdriver.find_element_by_xpath(self.english_language).click()
            sleep(3)
        except:
                print("Language not changed")
ncs15 commented 4 years ago

Nice. Never encountered language option on ig.

Thanks!

În vin., 23 oct. 2020 la 14:40, mcolus notifications@github.com a scris:

Closed #1 https://github.com/ncs15/InstagramBot/issues/1.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ncs15/InstagramBot/issues/1#event-3913526448, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2YCTQXRRYWROWRM3B6DYDSMFTRJANCNFSM4S32ZWXQ .