Commit 077e291907daa60a5827bb17e74fd24c9472c2b9

Authored by Noah ago
1 parent 62eef8f2a0
Exists in master

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

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

insight/url.py View file @ 077e291
... ... @@ -73,7 +73,7 @@
73 73 })
74 74  
75 75 else:
76   - print link
  76 + #print link
77 77 data.append({
78 78 'bitly_url' : str(link),
79 79 'origin_url': str(txt[source_bgn:source_end]),
... ... @@ -101,7 +101,7 @@
101 101  
102 102 def rpiki2click(self,url):
103 103 #print url
104   - api = "http://contents-data.pikicast.com/contents_RPIKI_api/"
  104 + api = "http://data2.piki.work/contents_RPIKI_api/"
105 105  
106 106 try:
107 107 cid = url.split("cid=")[1].split("&")[0]
... ... @@ -16,7 +16,7 @@
16 16 token = Token()
17 17  
18 18 contexts = Context(token)
19   - contexts.setContextsFeedAndTimestemp(3600 * 24 * 10 )
  19 + contexts.setContextsFeedAndTimestemp(3600 * 24 * 10)
20 20 contents_list = contexts.getContentsList()
21 21  
22 22 for content in contents_list: