Skip to main content

Scrape surf conditions from surf-report.com

Project description

Surf Scrap - surf-scrap-hp

surf-scrap-hp is a Python package that allows you to extract surf conditions
from surf-report.com and save them into a CSV file for further analysis or dashboard creation.

This package was developed as part of a data analysis project to help surf schools identify the best moments to practice surfing during the week.

PyPI version License: MIT

Features

  • Scrapes surf conditions from surf-report.com
  • Works with multiple surf spots (Lacanau, Carcans, Moliets, etc.)
  • Extracts:
    • Day
    • Hour
    • Wave size
    • Wind speed (km/h)
    • Wind direction
  • Saves the data as a CSV file
  • Returns a pandas DataFrame for immediate use
  • Simple API with one main function

Installation

Install the package from PyPI:

pip install surf-scrap-hp

Quick Start

from surf_scrap import scrape_surf_report

scrape_surf_report(
    "https://www.surf-report.com/meteo-surf/carcans-plage-s1013.html",
    "carcans.csv"
)

After execution, a file carcans.csv will be created in your working directory. You can change the name carcans.csv to an other one.

Function Documentation

scrape_surf_report(url, output_csv)

Scrapes surf conditions from a surf-report.com page and saves the data to a CSV file.

Parameters:

Name Type Description
url str URL of the surf-report page
output_csv str Path where the CSV file will be saved

Returns

  • pandas.DataFrame containing the extracted surf conditions.

Output Data Format

The generated CSV file contains the following columns:

Column Description
Day Day of the forecast
Hour Time of the forecast
Wave_size_m Wave size range (meters)
Wind_speed_km_h Wind speed (km/h)
Wind_direction Wind direction

Notes & Limitations

  • The package relies on the current HTML structure of surf-report.com.
  • If the website structure changes, the scraper may require updates.
  • This project is intended for educational and analytical purposes.

Dependencies

  • Python ≥ 3.12
  • requests
  • beautifulsoup4
  • pandas

All dependencies are automatically installed via pip.

Licence

This project is licensed under the MIT License. You are free to use, modify, and distribute it.


Useful Links

PyPI : https://pypi.org/project/surf-scrap-hp/

Authors

  • MISSONGO Aimé Blanchard
  • Hippolyte SODJINOU

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

surf_scrap_hp-0.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

surf_scrap_hp-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file surf_scrap_hp-0.0.2.tar.gz.

File metadata

  • Download URL: surf_scrap_hp-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for surf_scrap_hp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 65c499f879f97fad2beae9bf1042a6d3a4f4f7abbbe50350f4ad7974932346c5
MD5 c57280cbcdf4481d64233bfcf14d2b61
BLAKE2b-256 4ddc8d016e89575450c8663bce7ee0b1b3a21541ad8f3d775a6c016f07646adb

See more details on using hashes here.

File details

Details for the file surf_scrap_hp-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: surf_scrap_hp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for surf_scrap_hp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f5e881d904bf5d76985b8d68f2ab8acfa5e58c78e1c2a43defc583949a7306f
MD5 7adbb605a2c08ca8a889d6f27bfac02f
BLAKE2b-256 d6c4c8f2705561e09674d5f8ccbaebee6ce0db8aaddeb00a2e3c1cb0229ff3b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page