<what> 이 가진 최고의 아이디어는 증명되었고 <to>에 흡수되었다.
test of time : 세월의 시험
<what> 이 가진 최고의 아이디어는 증명되었고 <to>에 흡수되었다.
test of time : 세월의 시험
| from apscheduler.schedulers.blocking import BlockingScheduler | |
| from datetime import datetime | |
| # main code | |
| def runner(): | |
| print(f'{datetime.now()}:runner') | |
| sched = BlockingScheduler() |
| import smtplib | |
| # 이메일 보내기 : restock | |
| class EmailNotification: | |
| def __init__(self, gmail_user, gmail_password): | |
| self.gmail_user = gmail_user | |
| self.gmail_password = gmail_password |
| 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 |
| 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 |
| 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) |
| [DEFAULT] | |
| INTERVAL_MINS = 5 | |
| [TELEGRAM] | |
| TOKEN = *** | |
| RECEIVER_ID = ### |
| print('just a simple test') |
| --- | |
| - hosts: localhost | |
| become: true | |
| tasks: | |
| - name: Install basic packages | |
| apt: | |
| name: ['curl', 'apt-transport-https'] | |
| state: present | |
| force: yes | |
| - name: Install Python3.4 |
| <!-- 의존성 jar를 포함하여 빌드 --> | |
| <properties> | |
| <main.class>YourMainClass</main.class> <!-- jar 실행할 메인 클래스 --> | |
| </properties> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-shade-plugin</artifactId> |