datacipen commited on
Commit
85f58b5
1 Parent(s): 52ee056

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -4
main.py CHANGED
@@ -714,10 +714,13 @@ async def API_France_Travail(romeListArray):
714
  end_dt = datetime.datetime.today()
715
  results = []
716
  for k in romeListArray:
717
- params = {"motsCles": k,'minCreationDate': dt_to_str_iso(start_dt),'maxCreationDate': dt_to_str_iso(end_dt),'range':'0-149'}
718
- try:
719
- search_on_big_data = client.search(params=params)
720
- results += search_on_big_data["resultats"]
 
 
 
721
  results_df = pd.DataFrame(results)
722
  return results_df
723
 
 
714
  end_dt = datetime.datetime.today()
715
  results = []
716
  for k in romeListArray:
717
+ params = {"motsCles": k,'minCreationDate': dt_to_str_iso(start_dt),'maxCreationDate': dt_to_str_iso(end_dt),'range':'0-149'}
718
+ try:
719
+ search_on_big_data = client.search(params=params)
720
+ results += search_on_big_data["resultats"]
721
+ except:
722
+ print("Il n'y a pas d'offres d'emploi.")
723
+
724
  results_df = pd.DataFrame(results)
725
  return results_df
726