📦 Initialize Geulbeot structure and merge Prompts & test projects
This commit is contained in:
13
02. Prompts/문서생성/codedomain/사이트별_함수_Python_v01.py
Normal file
13
02. Prompts/문서생성/codedomain/사이트별_함수_Python_v01.py
Normal file
@@ -0,0 +1,13 @@
|
||||
class SslAdapter(HTTPAdapter):
|
||||
def init_poolmanager(self, *args, **kwargs):
|
||||
ctx = ssl.create_default_context()
|
||||
ctx.set_ciphers('DEFAULT:@SECLEVEL=1')
|
||||
self.poolmanager = PoolManager(*args, ssl_context=ctx, **kwargs)
|
||||
|
||||
session = requests.Session()
|
||||
session.mount('https://', SslAdapter())
|
||||
headers = {'User-Agent': 'Mozilla/5.0', 'Accept-Language': 'ko-KR,ko;q=0.9'}
|
||||
|
||||
# -------------------------------------------------
|
||||
# 사이트별 함수 (대한경제 제외)
|
||||
# -----------------------------------
|
||||
Reference in New Issue
Block a user