Skip to content

Commit

Permalink
크롤링 위치 바꾸기 - 함수 호출 때마다
Browse files Browse the repository at this point in the history
requirements 변경 > @~~~.whl 은 install이안됨
redis > aws와 연결
  • Loading branch information
zhqmfkv committed Apr 4, 2022
1 parent e666775 commit c1cffc4
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 179 deletions.
4 changes: 2 additions & 2 deletions alaltalk/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False

ALLOWED_HOSTS = ["*"]
ALLOWED_HOSTS = ["alaltalk.com"]

# Application definition

Expand Down Expand Up @@ -77,7 +77,7 @@
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [("127.0.0.1", 6379)],
"hosts": [("alaltalk-001.6hgyaz.0001.apn2.cache.amazonaws.com", 6379)],
},
},
}
Expand Down
175 changes: 88 additions & 87 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,90 +1,91 @@

aioredis @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/55/f7/66/96e38758602b0d783f3eb653b5f4e599ec2b918ecefb6809607e604872/aioredis-1.3.1-py3-none-any.whl
alaltalk==0.1.0
asgiref @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/12/c6/58/b461520efbe0ac0a67261f2d665156c3efabcc6392f021f3db62abbd51/asgiref-3.5.0-py3-none-any.whl
async-generator @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/60/d6/35/e25389ca9cdf584a7a41be4eab45a490150210296ca82c7eb696a7e21b/async_generator-1.10-py3-none-any.whl
async-timeout @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/31/90/f6/e2df01736b095fcbabf93cf579a4d9b8d7a4a78c4c63fad4d32320b197/async_timeout-4.0.2-py3-none-any.whl
atomicwrites @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/ca/84/dd/000dbc2864acca52a74a82da8b597c9e4778eb3fe64687a31a8095ad5f/atomicwrites-1.4.0-py2.py3-none-any.whl
attrs @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/9a/27/ab/6895b786f345452394b42c1fdbe863803d0396e675b632c01cb13cad92/attrs-21.4.0-py2.py3-none-any.whl
autobahn @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/b9/ba/20/21b494e3e5976fc7ff8e28d89b4615cd6c3754c3c788568df3c00ee685/autobahn-22.2.2.tar.gz
Automat @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/65/cb/ea/e1afb9a9a6bdf585a1e95564d6fc5f443bdd27b58bfff8b08a365e47ef/Automat-20.2.0-py2.py3-none-any.whl
backports.zoneinfo @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/71/1a/62/9085821058bcfe08a06807ec8e41c81aae5142f52ebc4911a8c6fbeec0/backports.zoneinfo-0.2.1-cp38-cp38-win_amd64.whl
beautifulsoup4 @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/6b/d1/6b/d0b3c51ce4f18fb1bd802534ae47547c8cac66e8dd8e35ec5dfa25ec74/beautifulsoup4-4.10.0-py3-none-any.whl
black @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/43/44/b9/d8f0de28d36792e423392e3d77fac1e5c19b92ad45c503d9e450a65797/black-22.1.0-cp38-cp38-win_amd64.whl
boto3 @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/37/10/94/cecb701c36829eb9263a2fad1dcee2ce47f9d434f69d62a0077d9b79c2/boto3-1.21.26-py3-none-any.whl
botocore @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/9b/45/e2/896ef08277149a6066de3ea55f26241860fedc9bef3b930ca7697c5df6/botocore-1.24.26-py3-none-any.whl
bs4 @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/31/09/dc/cbe5d44ab51cb684bb725d1265713500e6997c12c5af3cbbb332a19a32/bs4-0.0.1.tar.gz
certifi @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/77/74/3e/daf57610ff13227e3b3f50a78487055f6ac94cc9363abd2463be34c5e9/certifi-2021.10.8-py2.py3-none-any.whl
cffi @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/3a/7f/6a/3c0ea0d733f7b12ab32dbe191215e0a6fdd24c45aeec8b9971f4588ad2/cffi-1.15.0-cp38-cp38-win_amd64.whl
channels @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/39/47/2f/5570148d3c493ebbc7431aa4566c31f015a257d0a3a5a4e29035c3157c/channels-3.0.4-py3-none-any.whl
channels-redis @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/94/6a/11/d4af5c5ded6e979802e65ad749a27566aa1590b960bf8cdc4f29e18566/channels_redis-3.4.0-py3-none-any.whl
charset-normalizer @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/ae/14/8e/087a104edb7ec627884755272de815d8ee4fd53b8745fdb12a087dd2e1/charset_normalizer-2.0.12-py3-none-any.whl
click @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/d0/b7/c0/76ec1424a198945d839eb2f192952791381b7feb7391d3734e25bb7650/click-8.0.4-py3-none-any.whl
colorama @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/b0/f3/a3/cf94f06cbe1d286a25116cfe54d5a75cb1c4b54d15b2b1b4fc03a7f657/colorama-0.4.4-py2.py3-none-any.whl
constantly @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/81/d2/5a/1408f06ae332603a8d2815a0f088eca5acfffef97318a835607a867c0a/constantly-15.1.0-py2.py3-none-any.whl
cryptography @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/68/91/40/ea547ba43a50a0918ae5d69a7b8626b210d36a0b11abd69472e2676419/cryptography-36.0.2-cp36-abi3-win_amd64.whl
daphne @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/94/81/2b/a5b3c4e8058cc3020be726b12e0fa228ea1e82d3d0e65976ec082c6dfe/daphne-3.0.2-py3-none-any.whl
aioredis==1.3.1
asgiref==3.5.0
async-generator==1.10
async-timeout==4.0.2
atomicwrites==1.4.0
attrs==21.4.0
autobahn==22.2.2
Automat==20.2.0
backports.zoneinfo==0.2.1
beautifulsoup4==4.10.0
black==22.1.0
boto3==1.21.26
botocore==1.24.26
bs4==0.0.1
certifi==2021.10.8
cffi==1.15.0
channels==3.0.4
channels-redis==3.4.0
charset-normalizer==2.0.12
click==8.0.4
colorama==0.4.4
constantly==15.1.0
cryptography==36.0.2
daphne==3.0.2
distlib==0.3.4
Django @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/87/d7/eb/f1c037e10c7da8724dbdb3d7df507c15bdb95f4479579917c778dded88/Django-4.0.2-py3-none-any.whl
django-ninja @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/79/72/4e/221d85ece8fc9c4da24f2d6937d3f9e7adcf6eca0e89864dcff55f8520/django_ninja-0.17.0-py3-none-any.whl
django-storages @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/07/f8/8a/1632d79c576a24710c2c227de3a99677c42241f2f2ef82dea8c6b51242/django_storages-1.12.3-py3-none-any.whl
django-stubs @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/6d/c9/46/a339fa8f645b3afda239161bbe0099c394269004abe0726dfa0c5bc75b/django_stubs-1.9.0-py3-none-any.whl
django-stubs-ext @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/d5/39/4e/9b87dbf4648e9795d43bdb8fefc7e76dccdb89831b7775c5013f1556cb/django_stubs_ext-0.3.1-py3-none-any.whl
Django==4.0.2
django-ninja==0.17.0
django-storages==1.12.3
django-stubs==1.9.0
django-stubs-ext==0.3.1
filelock==3.6.0
gunicorn @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/b5/fa/14/5790a1a5da3a5144bc505c39d8003baa6f64040928b75d0e0779683287/gunicorn-20.0.4-py2.py3-none-any.whl
h11 @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/bc/d7/e2/6d144112b0c47a5ee4e22c53b271dc73b63c1e64e15aca149164758406/h11-0.13.0-py3-none-any.whl
hiredis @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/19/08/68/ec92c685aec94736944495f25e677b7ddfa62f9b5142cce24bc31b22de/hiredis-2.0.0-cp38-cp38-win_amd64.whl
hyperlink @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/a8/60/f4/6db88d8dc79ad4964509faadbb57056a543952612bcc36c732657d744f/hyperlink-21.0.0-py2.py3-none-any.whl
idna @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/f7/09/c9/8e80952436ff87855ddff4891a35ecf913b2b5dc97911f02a070ff2b1f/idna-3.3-py3-none-any.whl
incremental @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/b3/4e/73/a9b57942d2bc87181356083a207128fffb3623a34b8933d09553109911/incremental-21.3.0-py2.py3-none-any.whl
iniconfig @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/ac/f9/da/e990ffcd9ec361a68676a5916e391286e1ea5d1b8907ae887e141a71f5/iniconfig-1.1.1-py2.py3-none-any.whl
isort @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/08/6b/bf/a994a4feb3ad0863ccc2edf385a86c88314f00f00732f08093af5fa3dc/isort-5.10.1-py3-none-any.whl
jmespath @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/a6/b1/e0/623eaec6007fe9b9a20269d607049615f940793e62dd0e166a9f55e679/jmespath-1.0.0-py3-none-any.whl
msgpack @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/8e/a8/aa/5f0431712e559830137002ee792995b8c7f2c3ed77ba4dcc022f333c84/msgpack-1.0.3-cp38-cp38-win_amd64.whl
mypy @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/c5/58/56/24adb8b0a3233e0c2b85f35627db98f0e7a06e5e68a4dd59d3561fa965/mypy-0.931-cp38-cp38-win_amd64.whl
mypy-extensions @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/b6/a0/b0/a5dc9acd6fd12aba308634f21bb7cf0571448f20848797d7ecb327aa12/mypy_extensions-0.4.3-py2.py3-none-any.whl
mysqlclient @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/14/52/84/9125b36183afedd8d810806612919abb5ae36ca7712959d2b946aeccbd/mysqlclient-2.1.0-cp38-cp38-win_amd64.whl
outcome @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/00/14/4a/3b3389d9f3f881fabfe716588c0006693afe583016407a974d8c590270/outcome-1.1.0-py2.py3-none-any.whl
packaging @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/7f/d5/4c/1d3c4776012fc0bbe1f86e69bde2c5e36d2d32caa2e4845ac1fc08ab3f/packaging-21.3-py3-none-any.whl
pathspec @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/04/91/14/294ed2ee6c852b0d466bdd15d393127eff4168b35ae81cedf5a03fe348/pathspec-0.9.0-py2.py3-none-any.whl
Pillow @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/fd/d9/85/3254d2cde5121c94c339158fd0df0baedc362be1f7cf917b94ea5dfb3a/Pillow-9.0.1-cp38-cp38-win_amd64.whl
platformdirs @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/69/d8/85/534d33a027326b761252b65d12289eed45f2fed6912d6ffd47affe6284/platformdirs-2.5.1-py3-none-any.whl
pluggy @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/38/05/d7/70e2b0d553c780097b692ed658b0f553a28f16028d848a98174b1a2249/pluggy-1.0.0-py2.py3-none-any.whl
py @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/ab/b4/c3/a3971fd0d6ab5a2e40a43ad7b809005422d7cf333f7be6ccdfe9002e1b/py-1.11.0-py2.py3-none-any.whl
pyasn1 @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/a6/f7/5e/59a43ec23ade0888631b3f24244da7f5d5a0b6b40849c86b8c6b4c54d1/pyasn1-0.4.8-py2.py3-none-any.whl
pyasn1-modules @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/09/f6/56/0e33158234b3e9b9e5d8eb01e7a96670a99ab43b3dbe89b0f129477a59/pyasn1_modules-0.2.8-py2.py3-none-any.whl
pycparser @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/7a/f7/3b/fd50e9d7e1c02d2d2e8631fca716f6b6ffe3742f322e4a170eb3f2f41b/pycparser-2.21-py2.py3-none-any.whl
pydantic @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/ca/32/f4/641dd14660d1d6e5f7242a3cbc2779ec73b4cfa70c4a8dde8a10636a28/pydantic-1.9.0-cp38-cp38-win_amd64.whl
PyMySQL @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/ce/1e/82/65d25b3a7d167a18d151772080da43df552c0256c2d683121ea4301f12/PyMySQL-1.0.2-py3-none-any.whl
pyOpenSSL @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/54/33/bb/0c2669857467b4f12cfa13be72d2f62e03f84470e68079a116fb264999/pyOpenSSL-22.0.0-py2.py3-none-any.whl
pyparsing @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/8a/67/7c/c21f632fb8255d9fc3882ed4548b0270011ef2a160a6031635274760a2/pyparsing-3.0.7-py3-none-any.whl
PySocks @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/0d/f3/af/0d5cb110c7ceb17f08017e9fbc5a2e1770cefa6179d7f05b25aaf8ffb2/PySocks-1.7.1-py3-none-any.whl
pytest @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/1c/4d/ee/203e33e67624672b4775df627230210e015630536a13a13794b0fc1b7d/pytest-7.1.1-py3-none-any.whl
pytest-django @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/69/0a/06/36cb142b3467a43e957b3ab764180f6f32ca8a77101fd3a9729b7bed10/pytest_django-4.5.2-py3-none-any.whl
python-dateutil @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/0f/f1/e2/e1d3399cea26388e2ed5b93ea3e7c137d2b4027c5ba14c64ab839294ed/python_dateutil-2.8.2-py2.py3-none-any.whl
requests @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/dc/17/bf/8d9779110a13421f6181028974b24800ec70f28bf9b311411e1868b8c7/requests-2.27.1-py2.py3-none-any.whl
s3transfer @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/5c/ab/1b/2fbd71ad53aa8a0e0ae2297da508aa28029aa39c29feb1316f8743f449/s3transfer-0.5.2-py3-none-any.whl
selenium @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/c6/96/11/d23f67da09695734675a0c6ed83f0cea6a69f3a5dcbe7aa049dc34e124/selenium-4.1.3-py3-none-any.whl
service-identity @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/c0/24/88/1bdac9db5bb9e69d31ea2aa8ed40563bce5ea1c5250d7b0416c5578e3c/service_identity-21.1.0-py2.py3-none-any.whl
six @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/48/e6/04/8118155ae3ec3a16dd2a213bbf7a7d8a62c596b2e90f73a22c896269f1/six-1.16.0-py2.py3-none-any.whl
sniffio @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/d0/91/b7/e6203dd46faa656f9ddf9a16cfbc3e51a56fa709d69642affedb2e0eff/sniffio-1.2.0-py3-none-any.whl
sortedcontainers @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/8f/31/be/2d0a228ecadbc21e65b90453a4055bb3a48b0b098ed3e0ca8cafa85629/sortedcontainers-2.4.0-py2.py3-none-any.whl
soupsieve @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/a0/a9/44/7562e86737b98a068db55b064118bd98ca6e46a3fee5b6287606092e33/soupsieve-2.3.1-py3-none-any.whl
sqlparse @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/bd/30/d0/940567a036c6ea57abe7098acbd123f8c8985ccc27713365ae80d28f89/sqlparse-0.4.2-py3-none-any.whl
supervisor @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/9a/39/60/51c13d0f5de1251d63c251aa41168536d29f19f99d78748ecd9d00fe40/supervisor-4.2.4-py2.py3-none-any.whl
toml @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/9f/8c/c3/7b4f6778d60f3c9fa11f8fd0e48243bbad25a04975e0a01006b6350594/toml-0.10.2-py2.py3-none-any.whl
tomli @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/36/bd/11/98fa2af866c73d00f2498ade62c7fcf28db8656714b7b7a44e9cb2f855/tomli-2.0.1-py3-none-any.whl
trio @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/87/42/45/737944141222b511758a0e68010bc079f8f30ff7cfd3007fc6f8fa3bed/trio-0.20.0-py3-none-any.whl
trio-websocket @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/7a/92/84/ea94eeaa7f5a79596e5782b888960877466d7b4823fe474d49b12a32d3/trio_websocket-0.9.2-py3-none-any.whl
Twisted @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/2a/22/4d/2a3efa8d4f751cae24a106c5e96feac5cbadc30f7458bb445326a8100a/Twisted-22.2.0-py3-none-any.whl
twisted-iocpsupport @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/22/d5/36/cb739760711788d883900cbd2708d145b20b30b991cb2c5ea49ccdcec3/twisted_iocpsupport-1.0.2-cp38-cp38-win_amd64.whl
txaio @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/00/dd/a7/bd6a47a66afd043cc4e3ff4efcc6aced5d23ba441223f37823e417f24d/txaio-22.2.1-py2.py3-none-any.whl
types-PyMySQL @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/e5/5e/d5/7a8a4eefad51dd5acfb19ffda413a218ae72710e16f3bd16c459ebf62d/types_PyMySQL-1.0.6-py3-none-any.whl
types-pytz @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/fb/ac/50/066e9651cd267241143d7a16eb5042e5ab50ef80f9127f36fe8f212dd4/types_pytz-2021.3.6-py3-none-any.whl
types-PyYAML @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/75/0c/7b/46e0b0a36c956ff3cba8463b7014572ccacad14c8a221918a37d1596a5/types_PyYAML-6.0.5-py3-none-any.whl
typing_extensions @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/d8/15/d9/af7ec814ed6e1c696c44ca3bfff21d29263f6bcf7f23801bddca78b3c7/typing_extensions-4.1.1-py3-none-any.whl
tzdata @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/b5/f6/f2/a21c9d57e5650515b4e47595e9b9b61e1faff2c4a99477013837d23b9e/tzdata-2022.1-py2.py3-none-any.whl
urllib3 @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/82/6d/7d/27c3eb08fd57859a15aa9472bf2acde15878f936b4283bae9b2ad55599/urllib3-1.26.9-py2.py3-none-any.whl
gunicorn==20.0.4
h11==0.13.0
hiredis==2.0.0
hyperlink==21.0.0
idna==3.3
incremental==21.3.0
iniconfig==1.1.1
isort==5.10.1
jmespath==1.0.0
msgpack==1.0.3
mypy==0.931
mypy-extensions==0.4.3
mysqlclient==2.1.0
outcome==1.1.0
packaging==21.3
pathspec==0.9.0
Pillow==9.0.1
pip==22.0.4
platformdirs==2.5.1
pluggy==1.0.0
py==1.11.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pydantic==1.9.0
PyMySQL==1.0.2
pyOpenSSL==22.0.0
pyparsing==3.0.7
PySocks==1.7.1
pytest==7.1.1
pytest-django==4.5.2
python-dateutil==2.8.2
requests==2.27.1
s3transfer==0.5.2
selenium==4.1.3
service-identity==21.1.0
setuptools==57.0.0
six==1.16.0
sniffio==1.2.0
sortedcontainers==2.4.0
soupsieve==2.3.1
sqlparse==0.4.2
supervisor==4.2.4
toml==0.10.2
tomli==2.0.1
trio==0.20.0
trio-websocket==0.9.2
Twisted==22.2.0
twisted-iocpsupport==1.0.2
txaio==22.2.1
types-PyMySQL==1.0.6
types-pytz==2021.3.6
types-PyYAML==6.0.5
typing_extensions==4.1.1
tzdata==2022.1
urllib3==1.26.9
virtualenv==20.14.0
wsproto @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/d6/c3/c4/e73da9afb638cc93cd0dcce71388b53953605f106a33ab532caef0c757/wsproto-1.1.0-py3-none-any.whl
zope.interface @ file:///C:/Users/User/AppData/Local/pypoetry/Cache/artifacts/fb/96/c7/7ad8486bd6da51c15b3a5907480483a4823bcbb664968ba8c96303bd83/zope.interface-5.4.0-cp38-cp38-win_amd64.whl
wheel==0.36.2
wsproto==1.1.0
zope.interface==5.4.0
30 changes: 1 addition & 29 deletions search/apps.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,6 @@
import os

from django.apps import AppConfig
from selenium import webdriver
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import chromedriver_autoinstaller
import subprocess
import shutil
import selenium


class SearchConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"

# 현재 폴더 + chromedriver 경로 붙이기
webdriver_path = os.getcwd() + '\search\chromedriver.exe'
webdriver_path_for_mac = '/usr/local/bin/chromedriver'
print(webdriver_path)
name = "search"

# webdriver option 설정 - 창 안 보이기, 시크릿 모드
options = webdriver.ChromeOptions()
# options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
options.add_argument("headless")
options.add_argument("--incognito")

# try:
driver = webdriver.Chrome(executable_path=webdriver_path_for_mac, options=options)
# except Exception:
# driver = webdriver.Chrome(executable_path=webdriver_path, options=options)

# 쿠기 삭제
driver.delete_all_cookies()
name = 'search'
Loading

0 comments on commit c1cffc4

Please sign in to comment.