Advertisement
kopyl

https://jobs.lever.co/parseResume

Aug 7th, 2023
1,023
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.64 KB | None | 0 0
  1. url = 'https://jobs.lever.co/parseResume'
  2.  
  3. headers = {
  4.     'Accept': '*/*',
  5.     'Accept-Language': 'en-US,en;q=0.9,ru;q=0.8,uk;q=0.7',
  6.     'Cache-Control': 'no-cache',
  7.     'Connection': 'keep-alive',
  8.     'Origin': 'https://jobs.lever.co',
  9.     'Pragma': 'no-cache',
  10.     'Referer': 'https://jobs.lever.co/attentive/0910dc79-6140-4f60-8669-46da5d5865bd/apply',
  11.     'Sec-Fetch-Dest': 'empty',
  12.     'Sec-Fetch-Mode': 'cors',
  13.     'Sec-Fetch-Site': 'same-origin',
  14.     'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
  15.     'sec-ch-ua': '"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"',
  16.     'sec-ch-ua-mobile': '?0',
  17.     'sec-ch-ua-platform': '"macOS"',
  18. }
  19.  
  20. cookies = {
  21.     'cookieyesID': 'N3ZnZ1prcDBOU29ob3lNWTdueFNhS1Exd1VORTJVZVE',
  22.     '_ga_Q34B1R5W4J': 'GS1.1.1691334905.1.0.1691334906.59.0.0',
  23.     '__q_state_x1HFACWrNZVeUTqj': 'eyJ1dWlkIjoiYzk0YjFlMTItN2FlNi00NWQwLTg0OTAtN2Y4ZGZmMzEwZTQxIiwiY29va2llRG9tYWluIjoibGV2ZXIuY28iLCJtZXNzZW5nZXJFeHBhbmRlZCI6ZmFsc2UsInByb21wdERpc21pc3NlZCI6ZmFsc2UsImNvbnZlcnNhdGlvbklkIjoiMTE5NjYxMzQ0MDQwNTA3MDI3MCJ9',
  24.     '_ga': 'GA1.3.464814093.1691425673',
  25.     '_gid': 'GA1.3.819753513.1691425673',
  26.     '_ga_T90MF42ZY0': 'GS1.3.1691425672.1.0.1691425672.0.0.0',
  27.     'lever-referer': 'https%3A%2F%2Fjobs.lever.co%2Fattentive%2F0910dc79-6140-4f60-8669-46da5d5865bd',
  28. }
  29.  
  30. with open('/Users/olehkopyl/Downloads/CV Oleh Kopyl.docx', 'rb') as f:
  31.     files = {'resume': f.read()}
  32.  
  33. response = requests.post(url, headers=headers, files=files, cookies=cookies)
  34.  
  35. print(response.json())
  36. print(response.json()['resumeStorageId'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement