-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
36 lines (27 loc) · 769 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
import json
import os
import pip
import time
try:
from bs4 import BeautifulSoup
except ImportError:
pip.main(['install', 'beautifulsoup4'])
try:
from pySmartDL import SmartDL
except ImportError:
pip.main(['install', 'pySmartDL'])
try:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import *
except ImportError:
pip.main(['install', 'selenium'])
'''
CHANGE VALUES HERE:
'''
USERNAME = 'yourusernamehere'
PASSWORD = 'yourpasswordhere'
DRIVER_PATH = r"venv/selenium/webdriver/chrome/chromedriver"
LOGIN_PAGE = 'http://kisscartoon.me/Login'
TARGET_PAGE = 'http://kisscartoon.me/Cartoon/Rick-and-Morty'
DOWNLOAD_PATH = r"path of download location"