Update main.py
Browse files
main.py
CHANGED
@@ -771,7 +771,7 @@ async def creation_liste_entreprises(arrayOfsecteur):
|
|
771 |
token = await connexion_registre_national_entreprises()
|
772 |
url = f"https://registre-national-entreprises.inpi.fr/api/companies?page=1&pageSize=500&codeCategory={codeSecteurSTR}"
|
773 |
print(url)
|
774 |
-
headers = {"Authorization": f"Bearer {token}"}
|
775 |
response = requests.get(url, headers=headers)
|
776 |
if response.status_code == 200:
|
777 |
print('OK')
|
|
|
771 |
token = await connexion_registre_national_entreprises()
|
772 |
url = f"https://registre-national-entreprises.inpi.fr/api/companies?page=1&pageSize=500&codeCategory={codeSecteurSTR}"
|
773 |
print(url)
|
774 |
+
headers = {"Authorization": f"Bearer {token}", "Cache-Control": "no-cache"}
|
775 |
response = requests.get(url, headers=headers)
|
776 |
if response.status_code == 200:
|
777 |
print('OK')
|