Skip to content

Instantly share code, notes, and snippets.

View youtube-jocoding's full-sized avatar

조코딩 JoCoding youtube-jocoding

View GitHub Profile
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["enable-logging"])
driver = webdriver.Chrome("C:/kefico/chromedriver.exe", options=options)
url = "https://mediahub.seoul.go.kr/news/issue/hotNewsList.do"
driver.get(url)
time.sleep(2)
news_List = driver.find_element(By.CSS_SELECTOR, "#news_List")
import { Request, Response, NextFunction } from "express";
var MAX_POP = parseInt(process.env.MAX_POP || "200");
import validateSchool from "../validator/validateSchool";
import redis from "../database/redis";
export var checkPopQuery = async (
req: Request,
res: Response,
@youtube-jocoding
youtube-jocoding / KoreaStockAutoTrade.py
Last active May 12, 2022 00:14
KoreaStockAutoTrade.py
import requests
import json
import datetime
import time
import yaml
with open('config.yaml', encoding='UTF-8') as f:
_cfg = yaml.load(f, Loader=yaml.FullLoader)
APP_KEY = _cfg['APP_KEY']
APP_SECRET = _cfg['APP_SECRET']
import pyautogui as pg
import time
for i in range(30):
print(pg.position())
time.sleep(.3)