Skip to content

Commit

Permalink
百度招聘爬虫
Browse files Browse the repository at this point in the history
Signed-off-by: luzhicheng <[email protected]>
  • Loading branch information
luzhicheng committed Dec 17, 2018
1 parent 0d4f475 commit 8bd2352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spider/baidu_spider/baidu_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def crawl(job_type, city, province, token, cookie):
release_time = str(datetime.datetime.now().strftime('%Y/%m/%d')) # 开工时间(当前时间)
valid_time = '' # 有效时间
salary = '' # 薪水
public_time = time.strftime("%Y-%m-%d %H:%M", time.localtime()) # 发布时间(当前时间)
public_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) # 发布时间(当前时间)

try:
company = re.compile(r'class="bd-tt" data-a-39d218aa>(.*?)<').findall(html)[0]
Expand Down

0 comments on commit 8bd2352

Please sign in to comment.