Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
injetlee committed Sep 2, 2018
1 parent 815ecf4 commit e9ba0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 爬虫集合/lagou.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main():
print(i, 'page', page)
time.sleep(random.randint(10, 20))
for row in info:
# insert(conn, tuple(row)) # 插入数据库,若不想存入 注释此行
insert(conn, tuple(row)) # 插入数据库,若不想存入 注释此行
ws1.append(row)
conn.close() # 关闭数据库连接,不存数据库 注释此行
wb.save('{}职位信息.xlsx'.format(lang_name))
Expand Down

0 comments on commit e9ba0df

Please sign in to comment.