Skip to content

Commit

Permalink
ajout d'un vieux code naf
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard committed Nov 9, 2023
1 parent fe15ead commit e34a242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion enthic/scraping/cquest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def list_bundles(year: int):
List all zip file for a given year.
"""
r = requests.get(os.path.join(BASE_URL, str(year)))
assert r.status_code == 200
assert r.status_code == 200, f"page {BASE_URL} pour l'année {year} renvoit une erreur"
page = BeautifulSoup(r.content.decode("utf-8"), "html.parser")
return sorted(x.text for x in page.find_all("a") if x.text.startswith("bilans_"))

Expand Down
1 change: 1 addition & 0 deletions references/naf_transition.json
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@
"06.922": "49.39B",
"07.01A": "41.10A",
"07.01B": "41.10B",
"07.01C": "41.10C",
"07.01D": "41.10D",
"07.01F": "68.10Z",
"07.02A": "68.20A",
Expand Down

0 comments on commit e34a242

Please sign in to comment.