-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from sparcs-kaist/refactor/portal-view-crawling
Add crawler to track portal view count for portal articles
- Loading branch information
Showing
13 changed files
with
325 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ PORTAL_2FA_KEY=/[2-7A-Z]{16}/ | |
DOCKERHUB_USERNAME= | ||
DOCKERHUB_PASSWORD= | ||
SENTRY_DSN= | ||
PORTAL_JSESSIONID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from django.core.management import BaseCommand | ||
|
||
from apps.core.management.scripts.portal_crawler import crawl_view | ||
|
||
|
||
class Command(BaseCommand): | ||
help = "포탈 공지글의 조회수를 크롤링합니다" | ||
|
||
def handle(self, *args, **options): | ||
crawl_view() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.