Prerequisites
Before getting started with Historia Para Gandules, ensure you have the following installed on your system:- Python 3.8+ - The platform is built with Python
- pip - Python package manager
- Git - For cloning the repository
Installation Steps
Create a Virtual Environment (Recommended)
It’s recommended to use a virtual environment to isolate project dependencies:
Required Dependencies
Data Scraping
- instaloader - Instagram scraping library for downloading posts and metadata
Data Processing
- pandas - Data manipulation and analysis
- openpyxl - Excel file reading and writing
Visualization
- folium - Interactive map generation
- matplotlib - Static plotting and visualization
- seaborn - Statistical data visualization
- plotly - Interactive plotting (used in EDA)
Analysis Environment
- jupyter - Interactive notebook environment for exploratory data analysis
HTTP Requests
- requests - HTTP library for downloading images
Complete Installation Command
You can install all dependencies at once with:Verify Installation
Verify that all packages are installed correctly:If you encounter any import errors, make sure your virtual environment is activated and all packages are installed in the correct environment.
Directory Structure
After installation, your project structure should look like this:Platform-Specific Notes
Windows
On Windows, you may need to install Visual C++ Build Tools if you encounter compilation errors:- Download from Microsoft Visual Studio
- Select “Desktop development with C++” during installation
macOS
Ensure Xcode Command Line Tools are installed:Linux
Most dependencies should work out of the box. If you encounter issues, install development packages:Troubleshooting
ImportError: No module named 'instaloader'
ImportError: No module named 'instaloader'
Make sure you’ve activated your virtual environment and installed all dependencies:
Permission denied when creating directories
Permission denied when creating directories
Ensure you have write permissions in your project directory, or run with appropriate permissions.
SSL Certificate errors with requests
SSL Certificate errors with requests
Update your certificates or use: