Access and retrieve open data from data.gouv.fr using Python. Ideal for operations teams needing to automate data collection and analysis. Connects to Claude Code for integration into existing workflows.
git clone https://github.com/benoitvx/data-gouv-skill.gitNo install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/benoitvx/data-gouv-skillCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to access and retrieve open data from data.gouv.fr using Python. Specifically, I want to collect [DATA_TYPE] related to [INDUSTRY] for [COMPANY]. Can you provide a Python script that automates this process and integrates with Claude Code?
```python
# Python script to retrieve open data from data.gouv.fr
import requests
import pandas as pd
# Define the API endpoint and parameters
data_type = "transportation"
industry = "logistics"
url = f"https://www.data.gouv.fr/api/1/datasets/?q={data_type}&tags={industry}"
# Make the API request
response = requests.get(url)
data = response.json()
# Process the data
datasets = data['data']
for dataset in datasets:
print(f"Dataset Title: {dataset['title']}")
print(f"Description: {dataset['description']}")
print(f"Access URL: {dataset['resources'][0]['url']}")
print("---------------------")
# Convert to DataFrame for further analysis
df = pd.DataFrame(datasets)
df.to_csv('datasets.csv', index=False)
```
The script above retrieves open data related to transportation in the logistics industry from data.gouv.fr. It processes the data and prints the title, description, and access URL for each dataset. The data is also saved to a CSV file for further analysis.
To use this script:
1. Replace "transportation" with the type of data you need.
2. Replace "logistics" with the relevant industry.
3. Run the script in your Python environment.
4. The script will output the dataset information and save it to a CSV file.AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
Service Management That Turns Chaos Into Control
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan