Commit 47237816c6bbedcf648e53bfa1040ccb9b50f447
1 parent
b11b0e38b2
Exists in
master
fr 부서진 링크도 수집
Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff
insight/url.py
View file @
4723781
... | ... | @@ -96,13 +96,13 @@ |
96 | 96 | |
97 | 97 | def Url2Cid(self,url): |
98 | 98 | |
99 | - if self.isrpiki(url): | |
100 | - return Base62().decode(url.split("cid=")[1].split("&")[0]) | |
101 | - elif self.isdeep(url): | |
102 | - try: | |
99 | + try: | |
100 | + if self.isrpiki(url): | |
101 | + return Base62().decode(url.split("cid=")[1].split("&")[0]) | |
102 | + elif self.isdeep(url): | |
103 | 103 | return requests.get(url).text.split("http://www.pikicast.com/share/")[1].split('"')[0] |
104 | - except : | |
105 | - return "0" | |
104 | + except : | |
105 | + return "0" | |
106 | 106 | |
107 | 107 | def rpiki2click(self,url): |
108 | 108 | #print url |