-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
40 lines (24 loc) · 866 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver import Keys
import time
import asyncio
from utils import *
def main():
chrome_options = Options()
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--headless")
chrome_service = Service(ChromeDriverManager().install())
driver = webdriver.Chrome(service=chrome_service, options=chrome_options)
driver.get("https://www.instagram.com/accounts/login/")
time.sleep(2)
login_to_insta(driver)
download_video(driver)
convert_video_to_wav()
asyncio.run(recognize_song())
remove_files()
stop_app()
main()