def orderResumes_resume_interview(userToken, resumeId, positionId, ip_port=None, userId=None): url = "https://gate.lagou.com/v1/zhaopin/orderResumes/{}/interview".format( resumeId) header = app_header_999(userToken=userToken, DA=False, userId=userId) ten_min_after = datetime.datetime.now() - datetime.timedelta(minutes=-10) ten_min_after_timestamp = time.mktime(ten_min_after.timetuple()) * 1000 data = { "orderResumeId": resumeId, "templateId": 0, "contact": "王子", "positionId": positionId, "interviewTime": ten_min_after_timestamp, "contactAddress": "北京市海淀区海置创投大厦4楼", "contactPhone": "16601010101", "addInfo": "请提前10分钟到,谢谢" } remark = "邀约面试" return json_post(url=url, headers=header, data=data, remark=remark, ip_port=ip_port, rd='mandy')
def deliver_create(positionId, resumeId, resumeType, isTalk=True, userToken=None, H9=False): url = 'https://gate.lagou.com/v1/entry/deliver/create' if H9 == True: header = app_header_999(userToken, DA=False) else: header = get_app_header_new(userId=100014648, X_L_REQ_HEADER={ "appVersion": "V_70000_1", "deviceType": 150, "reqVersion": 71300, "userType": 0 }) data = { "isTalk": isTalk, "positionId": int(positionId), "resumeId": resumeId, "resumeType": resumeType } remark = '投递简历' return json_post(url=url, headers=header, data=data, remark=remark, rd='征桂')
def get_info(userToken): url = 'https://gate.lagou.com/v1/entry/cuser/baseStatus/get' header = app_header_999(userToken, DA=False) return get_requests(url=url, headers=header, remark="跳转到首页,获取C端用户信息", rd='曾小宁')
def get_im_entrance(userToken, ip_port=None, userId=None): url = 'https://gate.lagou.com/v1/entry/config/appSetting/getIMEntrance' header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="查询APP消息页活动入口", ip_port=ip_port)
def get_baseStatus(userToken, publisherId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/buser/baseStatus/get' header = app_header_999(userToken, DA=False, userId=publisherId) return get_requests(url=url, headers=header, remark="获取HR的基本状态", ip_port=ip_port)
def publish_position(userToken, userId=None, ip_port=None): ''' 发布职位 :return: ''' url = "https://gate.lagou.com/v1/zhaopin/positions/publish" data = { "isConfirm": True, "recruitmentType": 1, "typeId": 0, "recommend": False, "positionType": "测试", "workYear": "3-5年", "positionDesc": "<p>由于岗位称谓每个公司不尽相同,所以发布职位时同一职位我们会以不同标题发布多条。</p>", "labels": [{ "name": "电商", "id": 1 }], "salaryMin": 15, "positionDescPlainText": "\n1、组织完成项目质量计划,针对项目问题组织回溯,推动短板改进;\n2、进行质量文化宣传培训,提升项目的质量效率;", "positionName": "拉勾测试测试工程师" + str(random.randint(0, 99)), "positionThirdType": "测试工程师", "firstType": "开发|测试|运维类", "positionBrightPoint": "每年18薪", "education": "本科", "jobNature": "全职", "department": "", # "workAddressId" : 1629630, "workAddressId": 1560096, "salaryMax": 25 } remark = "发布职位" headers = app_header_999(userToken, DA=False, userId=userId) return json_post(url=url, headers=headers, data=data, remark=remark, ip_port=ip_port, rd='royliu')
def workExperiences(userToken, mutongStrategy=None, **kwargs): url = 'https://gate.lagou.com/v1/neirong/workExperiences/' startDate = kwargs.get('startDate', '2015.09') endDate = kwargs.get('endDate', '至今') companyName = kwargs.get('companyName', '杰威尔音乐有限公司') data = { "id": 0, "workContent": "<p>跟进迭代测试工作,用户反馈;</p><p>dubbo接口测试,http接口测试</p>", "positionType1": "销售类", "isFilter": True, "positionType": "销售顾问", "positionType2": "销售", "endDate": endDate, "positionName": "艺人经纪", "companyName": companyName, "startDate": startDate, "companyIndustry": "分类信息", "department": "用户价值部", "skillLabels": ["测试"] } if mutongStrategy == 'A': del data['skillLabels'] data['isGuide'] = '1' # data['workContent']='' # 调用附件上传接口并成功 header = app_header_999(userToken, DA=False) return json_post(url=url, data=data, headers=header, remark="提交工作经历", rd='征桂')
def search_positions(userToken, userId=None, ip_port=None, **kw): city = kw.get('city', '北京') keyword = kw.get('keyword', '测试') showId = kw.get('showId', "") salaryLower = kw.get('salaryLower', 20000) salaryUpper = kw.get('salaryUpper', 35000) header = app_header_999(userToken, DA=False, userId=userId) url = 'https://gate.lagou.com/v1/entry/positionsearch/searchPosition' data = { "keyword": keyword, "hiTag": "", "refreshHiTagList": True, "shieldDeliveyCompany": False, "sort": "0", "showId": showId, "workExperience": ["5-10年"], "keywordSource": 0, "lastShowCompanyId": 0, "isAd": "1", "tagType": "", "salaryLower": salaryLower, "city": city, "salaryUpper": salaryUpper, "education": [], "jobNature": [], "pageNo": 1, "longitudeAndLatitude": "-1.000000,-1.000000", "pageSize": 15 } return json_post(url=url, data=data, headers=header, remark='搜索职位', ip_port=ip_port, rd='royliu')
def get_info(userToken, ip_port=None, userId=None): url = 'https://gate.lagou.com/v1/entry/config/appSetting/get' header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="查询app端配置", ip_port=ip_port)
def position_index_suggestion(userToken, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/positionindex/suggestion' header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="个性化搜索", ip_port=ip_port)
def home_headline(userToken, ip_port=None, userId=None): url = 'https://gate.lagou.com/v1/neirong/home/headline?pageNo=1&pageSize=10' header = app_header_999(userToken, DA=False, userId=userId) remark = '拉勾头条列表' return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def get_hr_card(userToken, publisherId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/buser/hr/getHRCard?id={}'.format( publisherId) header = app_header_999(userToken, userId=publisherId) return get_requests(url=url, headers=header, remark="获取HR卡片信息", ip_port=ip_port)
def query_positions(userToken, companyId): url = 'https://gate.lagou.com/v1/entry/position/queryPositions?companyId={}&pageNo=0&pageSize=0'.format( companyId) header = app_header_999(userToken, DA=False) return get_requests(url=url, headers=header, remark="查询公司的在招职位", rd='royliu')
def get_communicate_positions(userToken, hr_Id, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/position/communicatePositions?hrId={}&showId=5&pageNo=1&pageSize=10'.format( hr_Id) header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="查询沟通职位列表", ip_port=ip_port)
def get_position_detail(userToken, positionId, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/position/positionDetail?id={}'.format( positionId) header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="根据职位id查询职位详情", ip_port=ip_port)
def query_by_company(userToken, companyId, positionType): url = 'https://gate.lagou.com/v1/entry/position/queryByCompany?companyId={}&positionType={}&pageNo=1&pageSize=10'.format( companyId, positionType) header = app_header_999(userToken, DA=False) return get_requests(url=url, headers=header, remark='根据筛选条件查询公司的在招职位', rd='royliu')
def orderResumes_positions_pages(userToken, ip_port=None, userId=None): url = host + '/orderResumes/positions/pages?pageNo=1&pageSize=20' header = app_header_999(userToken=userToken, DA=False, userId=userId) remark = '分页查询用于简历查询的职位' return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def get_hr_info(userToken, publisherId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/buser/hrInfo/{}'.format(publisherId) header = app_header_999(userToken, userId=publisherId) return get_requests(url=url, headers=header, remark="获取HR信息", ip_port=ip_port, rd='曾小宁')
def get_user_info(userToken, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/campus/user/getInfo' header = app_header_999(userToken=userToken, DA=False, userId=userId) remark = '校招--获取用户信息' return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def hotEmployee_topCompany(userToken, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/positionsearch/hotEmployee/topCompany?pageNo=1&pageSize=5' header = app_header_999(userToken, DA=False, userId=userId) remark = "专属热招-大厂专区" return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def hotEmployee_nearby(userToken, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/positionsearch/hotEmployee/nearby?pageNo=1&pageSize=5&longitude=0&latitude=0' header = app_header_999(userToken, DA=False, userId=userId) remark = "专属热招-附近热招" return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def query_company_score(userToken, companyId, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/interviewExperience/queryCompanyScore?companyId={}'.format( companyId) header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="查询公司面试评价分数", ip_port=ip_port)
def searchBySalary(userToken, ip_port=None, userId=None): url = 'https://gate.lagou.com/v1/neirong/home/searchBySalary' header = app_header_999(userToken, DA=False, userId=userId) remark = '薪资最高' return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def orderResumes_filter(userToken, ip_port=None, userId=None): url = host + '/orderResumes/filter' header = app_header_999(userToken=userToken, DA=False, userId=userId) remark = '简历搜索筛选条目' return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def fast_feedback(userToken, ip_port=None, userId=None): url = 'https://gate.lagou.com/v1/neirong/home/fastFeedback?pageNo=1&pageSize=10&showId=10' header = app_header_999(userToken, DA=False, userId=userId) remark = '极速反馈' return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def query_all_company(userToken, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/bigCompany/queryAll' header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="查询所有大公司ID列表", ip_port=ip_port, rd='王豪')
def home_page(userToken, ip_port=None, userId=None): url = 'https://gate.lagou.com/v1/neirong/home/page' header = app_header_999(userToken, DA=False, userId=userId) remark = 'app首页' return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def query_urgent_positions(userToken, companyId, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/bigCompany/queryUrgentPositions?companyId={}'.format( companyId) header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="查询公司急招职位", ip_port=ip_port)
def deliver_rec(userToken, ip_port=None, userId=None): url = 'https://gate.lagou.com/v1/neirong/home/deliverRec' header = app_header_999(userToken, DA=False, userId=userId) remark = '大家都在投' return get_requests(url=url, headers=header, remark=remark, ip_port=ip_port)
def is_big_company(userToken, companyId, userId=None, ip_port=None): url = 'https://gate.lagou.com/v1/entry/bigCompany/verify?companyId={}'.format( companyId) header = app_header_999(userToken, DA=False, userId=userId) return get_requests(url=url, headers=header, remark="是否大公司", ip_port=ip_port)