Skip to content

Instantly share code, notes, and snippets.

View youtube-jocoding's full-sized avatar

조코딩 JoCoding youtube-jocoding

View GitHub Profile
import pyautogui as pg
import time
for i in range(30):
print(pg.position())
time.sleep(.3)
@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 { 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,
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")
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)
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
import urllib.request
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["enable-logging"])
driver = webdriver.Chrome("C:/kefico/chromedriver.exe", options=options)
url = "https://pixabay.com/ko/images/search/"
keyword = input("검색어를 입력해주세요: ")
const apiKey = "sk-"
const { Configuration, OpenAIApi } = require("openai");
const express = require('express')
var cors = require('cors')
const app = express()
const configuration = new Configuration({
apiKey: apiKey,
});
const openai = new OpenAIApi(configuration);
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>운세보는 챗도지</title>
</head>
<body>
<h1></h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Chat UI Screen</title>
<link rel="stylesheet" href="style.css">
<style>
body {
margin: 0;
padding: 0;
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Chat UI Screen</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;