Update main.py
Browse files
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 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
|
|
|
|
|
|
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 |
|