Commit 8576f5a777ecddf541592558f0c04821e2f2bf50

Authored by Noah ago
1 parent 8f5e7edca8
Exists in master

r.piki 에서 자동으로 클릭수를 수집

Showing 3 changed files with 8 additions and 6 deletions Side-by-side Diff

insight/token.py View file @ 8576f5a
1 1 #!/usr/bin/env python
2 2 # -*- coding: utf-8 -*-
3 3 class Token() :
  4 +
  5 + token_str = "EAAUTLd5JgaoBAJMeeMXqcdExQ1egUHeBaIgVBCilmiH4K9RNyUt7gSgVZCZAtszWCLEaZCDQpxewhICtFjNRICFPWAqUygshcSsdEZBUeZAyUJkON7bfQ2NFFI5AqifNahzjFT83GkWZCZCZBXO3050XSjFf9HSR0iAZD"
4 6 prefix = "&access_token="
5 7 token = ""
6 8 token_sub = ""
7   - def __init__(self,input):
8   - self.setToken(input)
  9 + def __init__(self):
  10 + self.setToken(self.token_str)
9 11  
10 12 def setToken(self,input):
11 13 self.token = input
... ... @@ -12,8 +12,8 @@
12 12  
13 13 if __name__=='__main__':
14 14  
15   - token_str = "EAAUTLd5JgaoBAJMeeMXqcdExQ1egUHeBaIgVBCilmiH4K9RNyUt7gSgVZCZAtszWCLEaZCDQpxewhICtFjNRICFPWAqUygshcSsdEZBUeZAyUJkON7bfQ2NFFI5AqifNahzjFT83GkWZCZCZBXO3050XSjFf9HSR0iAZD"
16   - token = Token(token_str)
  15 + #token_str = "EAAUTLd5JgaoBAJMeeMXqcdExQ1egUHeBaIgVBCilmiH4K9RNyUt7gSgVZCZAtszWCLEaZCDQpxewhICtFjNRICFPWAqUygshcSsdEZBUeZAyUJkON7bfQ2NFFI5AqifNahzjFT83GkWZCZCZBXO3050XSjFf9HSR0iAZD"
  16 + token = Token()
17 17  
18 18 contexts = Context(token)
19 19 contexts.setContextsFeedAndTimestemp(3600 * 24 * 10 * 3)
... ... @@ -10,8 +10,8 @@
10 10 if __name__=='__main__':
11 11  
12 12 #token_str = "CAAUTLd5JgaoBABnBUUgOjgaUkuviOZCC1otVIJYwYapCRTZBU8ZAbTOd1uo1SBiqHr1eBhVdzoYDoBjPzqO0ImpxGZAXtlXeVtp4r2muUDt3O53NLYqFgrJqKAowcU7fWMsmMTZAAtKT8MXeF4Lb0rHQ2I1gHmbr6nlJWBHzk6dsNPmYHguMp"
13   - token_str = "EAAUTLd5JgaoBAJMeeMXqcdExQ1egUHeBaIgVBCilmiH4K9RNyUt7gSgVZCZAtszWCLEaZCDQpxewhICtFjNRICFPWAqUygshcSsdEZBUeZAyUJkON7bfQ2NFFI5AqifNahzjFT83GkWZCZCZBXO3050XSjFf9HSR0iAZD"
14   - token = Token(token_str)
  13 + #token_str = "EAAUTLd5JgaoBAJMeeMXqcdExQ1egUHeBaIgVBCilmiH4K9RNyUt7gSgVZCZAtszWCLEaZCDQpxewhICtFjNRICFPWAqUygshcSsdEZBUeZAyUJkON7bfQ2NFFI5AqifNahzjFT83GkWZCZCZBXO3050XSjFf9HSR0iAZD"
  14 + token = Token()
15 15  
16 16 context = Context(token)
17 17 page_list = context.getPageList()