Skip to content

Instantly share code, notes, and snippets.

View tpdns90321's full-sized avatar

kang tpdns90321

  • Korean, gimpo city, geongido
View GitHub Profile
@tpdns90321
tpdns90321 / add_comment.py
Last active March 17, 2021 12:10
github actions 예제
import sys
import json
import re
import urllib.request
from bs4 import BeautifulSoup
NAME_RULE = r"(\d+)/\d+.py"
CLIENT_HEADER = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0'}
def search_solved_ac(problem):
@tpdns90321
tpdns90321 / slackbot.py
Created June 25, 2021 05:40
aws-sns-lambda-slcakbot-or-webhook
import urllib3
import json
import os
from datetime import datetime, timezone, timedelta
seoul = timezone(timedelta(hours=9) ,name="Asia/Seoul")
http = urllib3.PoolManager()
url = os.environ["SLACK_WEBHOOK_URL"]
slack_channel = os.environ["SLACK_CHANNEL"]