Skip to content

Commit

Permalink
combine all hz info
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiqinHuo committed Apr 21, 2019
1 parent 9da0e46 commit ed98431
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions qiaokou/read_fang.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import qiaokou_crawler as qc
def read_info():
info = "["
prefix = "download/fang_page_"
for page in range(1,29):
filename = prefix + str(page)
with open(filename, 'r') as f:
res = f.read()
res = res[1:-1] # remove []
# print(type(res))
if page != 1:
info = info + ", " + res
else:
info = info +res
if page == 28:
info += "]"
qc.save_text(info, filename="all_hanzheng_info", path='hanzheng_all')
return info
read_info()

0 comments on commit ed98431

Please sign in to comment.