This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I changed it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Alec Moldovan | |
# Description: This module contains the logic for an instagram data scraper bot. | |
# Import Standard Libraries | |
import time, os, random | |
import json | |
# Import third-party modules | |
from selenium.webdriver.remote.webdriver import WebDriver | |
from selenium.common.exceptions import NoSuchElementException, TimeoutException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Alec Moldovan | |
# Description: Creates and configures A Chrome webdriver. | |
# Import Standard packages | |
import pathlib | |
from loguru import logger | |
# Import third-party modules | |
from selenium import webdriver | |
from selenium.common.exceptions import WebDriverException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import third-party modules | |
from loguru import logger | |
# Import Local Modules | |
from chromedriver_engine import setup_driver | |
from bot import Bot | |
from intercept import NetworkCapture | |
def main() -> None: | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Alec Moldovan | |
# Date: 04/20/2021 | |
# Description: This file contains all the core logic and data to simulate a primitive Library. | |
# Custom exceptions starts here. | |
class InvalidLibraryState(Exception): | |
""" | |
This exception is used when an invalid library location is used. | |
MUST BE: "ON_SHELF", "ON_HOLD_SHELF", "CHECKED_OUT" """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script simulates a primitve calculator | |
def multiply(num_1, num_2): | |
"""Returns the product of two numbers""" | |
return num_1 * num_2 | |
def add(num_1, num_2): | |
"""Returns the sum of two numbers""" | |
return num_1 + num_2 | |
def main(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A primitive calcuator simulator | |
def multiply(num_1, num_2): | |
"""Returns the product of two numbers""" | |
return num_1 * num_2 | |
def add(num_1, num_2): | |
"""Returns the sum of two numbers""" | |
return num_1 + num_2 |