Skip to content

Instantly share code, notes, and snippets.

View samsee's full-sized avatar
🏄‍♂️

Seungyoon Lee samsee

🏄‍♂️
View GitHub Profile
@samsee
samsee / page_turner.py
Created December 22, 2019 08:29
Auto PageDown Python script
from pynput.keyboard import Key, Controller
from time import sleep
keyboard = Controller()
sleep(5)
while(True):
keyboard.press(Key.page_down)
keyboard.release(Key.page_down)
@samsee
samsee / newstock_parts.py
Last active March 1, 2020 00:47
restock_bot_parts
def elvst_check(res):
soup = BeautifulSoup(res.text, 'html.parser')
stock_a = soup.find("a", class_="btn_dshop buying position_top")
if stock_a == None:
return False
return True
@samsee
samsee / newstock_coupang_parts.py
Created March 1, 2020 00:47
stock_check_coupang
def coupang_check(res):
soup = BeautifulSoup(res.text, 'html.parser')
stock_div = soup.find(find('div', class_='prod-not-find-known__buy__button')
if stock_div.text == "품절":
return False
return True
import smtplib
# 이메일 보내기 : restock
class EmailNotification:
def __init__(self, gmail_user, gmail_password):
self.gmail_user = gmail_user
self.gmail_password = gmail_password
@samsee
samsee / apscheduler-sample.py
Created May 10, 2020 12:49
Apschedule example for nested job
from apscheduler.schedulers.blocking import BlockingScheduler
from datetime import datetime
# main code
def runner():
print(f'{datetime.now()}:runner')
sched = BlockingScheduler()
@samsee
samsee / config.ini
Last active October 4, 2021 16:58
Restock Check Bot
[DEFAULT]
INTERVAL_MINS = 5
[TELEGRAM]
TOKEN = ***
RECEIVER_ID = ###
@samsee
samsee / en2kr.md
Last active November 2, 2022 06:27
Translate Idioms

<what> 이 가진 최고의 아이디어는 증명되었고 <to>에 흡수되었다.

test of time : 세월의 시험