Skip to content

Retrieve insights from Statista API and display chart via webpage

Notifications You must be signed in to change notification settings

yoostuff/statista-data-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

statista-data-analysis

Retrieve insights from Statista API and display Line-or-Pie chart via webpage

Quickstart - Pre-requisites

Download and Install Python (3.10 or above). Activate Virtual Environment and Install these libraries with peer dependencies:

python -m venv .venv 

python -m pip install flask flask-cors requests matplotlib pandas python-dotenv 

Create the following directory structure. Then, import and use individual components as required:

statista/
├── app.py
├── .venv
├── .env
├── .gitignore
├── requirements.txt
├── statista-project-structure
├── templates/
│   └── index.html
├── nppBackup/
│   └── app.py.2024-11-22_115328.bak
├── charts/  # Will store generated charts
│   └── charts.html #example

How to Use

Run the Flask application (python app.py). Open the app in your browser (http://127.0.0.1:5000). Select a category, chart type, and optional premium content, then analyze or download the data. The updated frontend should integrate seamlessly with the enhanced app.py backend. Style as per your desire!

Request API Access:

  • Create an accout with Statista here
  • Request API key access here:

Visualize your Code:

Releases

No releases published

Packages

No packages published