利用Python实现腾讯校园招聘状态查询

# _*_ coding:utf-8 -*-# filename:utf-8
import requests
import time

def query_state(counter=0):
    post_data = {'type':'query_result','idcard': '','phone': ''}
    post_data['idcard'] = '身份证后四位'
    post_data['phone'] = '1手机号'
    r = requests.post('http://m.join.qq.com/query/result',data=post_data)
    r.encoding = 'gb2313'
    data = r.text
    arr = data.split('

') print(str(counter)+':'+arr[1].split('

')[1]) counter = 0 while True: query_state(counter) counter+=1 time.sleep(10)

你可能感兴趣的:(Python)