Skip to content

Commit bb6ad92

Browse files
committed
zhihu
1 parent 3f0d487 commit bb6ad92

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

zhihu.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -923,25 +923,3 @@ def get_top_i_answers(self, i):
923923
if j > i:
924924
break
925925
yield answer
926-
927-
def main():
928-
s = time.time()
929-
url = "http://www.zhihu.com/question/21758700"
930-
question = Question(url)
931-
answers = question.get_top_i_answers(10)
932-
# answer.to_html()
933-
for answer in answers:
934-
answer.to_md()
935-
# answer.to_txt()
936-
e = time.time()
937-
print e - s
938-
# # i = 0
939-
# for answer in answers:
940-
# # i = i + 1
941-
# # if i > 200:
942-
# # break
943-
# answer.to_txt()
944-
# answer.to_md()
945-
946-
if __name__ == '__main__':
947-
main()

0 commit comments

Comments
 (0)