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
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") |
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 { 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, |
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 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'] |
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 pyautogui as pg | |
import time | |
for i in range(30): | |
print(pg.position()) | |
time.sleep(.3) |
NewerOlder