Commit 4af77bd17d3d84f835b6d31ea28d53091b438a51

Authored by Noah ago
1 parent 719294e6e2
Exists in master

디버그 해제 코드정리

Showing 1 changed file with 5 additions and 8 deletions Side-by-side Diff

... ... @@ -20,11 +20,9 @@
20 20 page = Page(contexts_list)
21 21 contents_list = page.getContentsList()
22 22  
23   - datadb = DataDB()
24   -
25 23 for content in contents_list:
26   -
27   - time.sleep(0.5)
  24 + datadb = DataDB()
  25 + time.sleep(1)
28 26 print content['id'].split('_')
29 27 p_id = str(content['id'].split('_')[0])
30 28 c_id = str(content['id'].split('_')[1])
... ... @@ -33,8 +31,8 @@
33 31 try:
34 32 message = content['message'].replace('\n',"").replace('\r',"").replace('\'',"")
35 33 except:
36   - message = ""
37   -
  34 + message = " "
  35 +
38 36 insight = Insight(token)
39 37 insight.setContentInsight(content['id'])
40 38 lists =["post_story_adds_unique",
41 39  
... ... @@ -107,8 +105,6 @@
107 105 datadb.fb_insert(sqlprefix + sqlvalues)
108 106 print sqlprefix + sqlvalues
109 107  
110   -
  108 + del(datadb)
111 109 del(insight)
112   -
113   - del(datadb)