SHARE
TWEET

Untitled

a guest Apr 24th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import json
  2.  
  3.  
  4.  
  5. def cargar_datos():
  6.     with open("C:\\Users\\Fernando\\response.json", encoding="UTF-8") as file:
  7.         arrayJson = json.load(file)
  8.  
  9.     return arrayJson
  10.  
  11. def cargar_datos2():
  12.     with open("C:\\Users\\Fernando\\vacante.json", encoding="UTF-8") as file:
  13.         arrayJson = json.load(file)
  14.  
  15.     return arrayJson
  16.  
  17.  
  18. arrayJson = cargar_datos()
  19. info_plantilla=cargar_datos2()
  20.  
  21. for json2 in arrayJson:
  22.     for json1 in info_plantilla:
  23.         if json1['region_id'] == json2['region_id']:
  24.             print('Id:', json2['id'])
  25.             print("Region",json2["region_name"])
  26.             print("Salario deseado",json2["current_salary"])
  27.             print("Fecha nacimiento", json2["birthday"])
  28.             print("Experiencia:")
  29.             for trabajo in json2['experiences']:
  30.                 print("\t", trabajo['place'], "->", trabajo['job'])
  31.             print()
  32.             pass
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top