Skip to main content
This page documents all configurable parameters in the Historia Para Gandules project.

Instagram Scraping Configuration

Profile Settings

profile_name
string
default:"historiaparagandules"
The Instagram username to scrape content from.Location: scraping5.py:8Example:
profile_name = "historiaparagandules"

Output Settings

output_file
string
default:"informacion_reels_simple.csv"
CSV filename for scraped data output.Location: scraping5.py:14Format: UTF-8 encoded CSV with headers

CSV Headers

The output CSV includes the following columns:
  1. Fecha - Post date
  2. Texto del reel - Caption text
  3. Likes - Like count
  4. Comentarios - Comment count
  5. URL del video - Video file URL
  6. Visualizaciones - View count
  7. Duración del video (s) - Duration in seconds
  8. URL del Post - Instagram post URL

Map Generation Configuration

Input Data

input_file
string
default:"excel_info_1.xlsx"
Excel file containing reel data with location information.Location: mapita5.py:11Required columns:
  • Localización - Coordinates in “lat,lon” format
  • URL de imagen - Image URL for thumbnails
  • Texto del reel - Reel caption
  • URL del Post - Instagram post link

Image Storage

image_directory
string
default:"imagenes"
Directory for storing downloaded thumbnail images.Location: mapita5.py:6-8Behavior: Created automatically if it doesn’t exist
image_filename_pattern
string
default:"imagenes/imagen_{index}.jpg"
Naming pattern for downloaded images.Variables:
  • {index} - Row index from the DataFrame

Map Display Settings

map_center
array
default:"[28.0, -15.0]"
Initial center coordinates for the map [latitude, longitude].Location: mapita5.py:40Default: Centered on the Canary IslandsFormat: [latitude, longitude]Example:
# For Tenerife
map_center = [28.4636, -16.2518]

# For Gran Canaria  
map_center = [28.1248, -15.4300]
zoom_start
integer
default:"6"
Initial zoom level for the map.Location: mapita5.py:40Range: 1-18
  • 1-3: World view
  • 4-6: Country/region view (default)
  • 7-10: City view
  • 11-18: Street/building view
popup_max_width
integer
default:"300"
Maximum width in pixels for marker popup windows.Location: mapita5.py:57
thumbnail_width
integer
default:"200"
Width in pixels for thumbnail images in popups.Location: mapita5.py:51Note: Height is set to auto to maintain aspect ratio

Output Settings

output_map
string
default:"mapa_ubicaciones_reels_with_thumbnails.html"
Filename for the generated HTML map.Location: mapita5.py:61Format: Standalone HTML file with embedded JavaScript

Data Analysis Configuration

Input Data

analysis_input
string
default:"excel_info_1.xlsx"
Excel file for exploratory data analysis.Location: EDA.ipynb

Display Settings

max_colwidth
None
Pandas display option for showing full column content.Usage:
pd.set_option('display.max_colwidth', None)

Visualization Settings

The analysis notebook uses:
  • Matplotlib for static plots
  • Seaborn for statistical visualizations
  • Plotly for interactive charts
Color schemes:
  • Categories: Default Plotly color palette
  • Bubble sizes: Proportional to view counts

Environment Requirements

Python Version

Recommended: Python 3.8 or higher

Required Packages

instaloader
pandas
folium
requests
matplotlib
seaborn
plotly
openpyxl

Installation

pip install instaloader pandas folium requests matplotlib seaborn plotly openpyxl

Build docs developers (and LLMs) love