본문 바로가기

Web

(3)
[Django] Riot API로 전적조회 사이트 만들기 - 1 ediblepotato.tistory.com/4 Riot API 사용해보기 https://developer.riotgames.com/ Riot Developer Portal About the Riot Games API With this site we hope to provide the League of Legends developer community with access to game data in a secure and r.. ediblepotato.tistory.com 에서 Riot API를 사용하는 간단한 방법을 확인했다. 이제 이걸로 전적조회사이트를 대충 만들어보려고 한다. 흔히 사용하는 전적조회사이트를 생각해보자. 해당 소환사명으로 검색하면, 최근 플레이한 게임에 대한 정보가 간략하게 뜬다. ..
Riot API 사용해보기 https://developer.riotgames.com/ Riot Developer Portal About the Riot Games API With this site we hope to provide the League of Legends developer community with access to game data in a secure and reliable way. This is just part of our ongoing effort to respond to players' and developers' requests for data and developer.riotgames.com Riot에서 제공하는 API를 구경만 해보았다. 일단 Riot 계정을 생성하고 개발자 등록을 하면 API Key..
[Django] 특정 시간에 자동으로 메일 보내기 매일 오전 7시에 메일을 보내줘야하는 기능을 구현하려 한다. 열심히 구글링을 한 결과 crontab을 사용해보려고 한다. 그런데 Windows에서는 crontab 사용이 불가능하다고 한다... 다시 구글링을 한 결과 APScheduler(Advanced Python Scheduler)라는 것을 찾아냈다. 일단 설치를 해줬다. pip install apscheduler 잘 설치가 된 것 같다. 이제 settings.py 에 설정을 입력해준다. #myproject/myproject/settings.py INSTALLED_APP = [ ... 'django_apscheduler', ... ] APSCHEDULER_DATETIME_FORMAT = "N j, Y, f:s a" # Default SCHEDULER_..