scrape

package
v0.0.0-...-27252a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

README

Extending Clockwise

My hope is that end users who rely on video conferencing platforms other than Zoom can contribute scraping implementations for their respective platforms. In theory, it should be as simple as:

  • Duplicate zoom.go.
  • Modify it to target a different platform.
  • Add the appropriate flags to run.go.

User contributions are welcome and appreciated. I'm happy to field any questions that surface in the process.

Documentation

Overview

Package scrape is a web scraper that relies on playwright-go to continuously retrieve the participant count of a specified zoom meeting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParticipantsJitsi

func GetParticipantsJitsi(url string, refreshInterval int, data *tui.Data, pw *playwright.Playwright) error

GetParticipantsJitsi retrieves the total participant count from a specified Jitsi URL. It runs in a loop and updates the passed in `Data` struct every `refreshInterval` seconds.

func GetParticipantsZoom

func GetParticipantsZoom(url string, refreshInterval int, data *tui.Data, pw *playwright.Playwright) error

GetParticipantsZoom retrieves the total participant count from a specified zoom URL. It runs in a loop and updates the passed in `Data` struct every `refreshInterval` seconds.

func InitializePlaywright

func InitializePlaywright() (pw *playwright.Playwright, err error)

initializePlaywright starts playwright in a standalone function to circumvent some flaws in the upstream in terms of how it prints logs.

Types

type Scraper

type Scraper func(url string, refreshInterval int, data *tui.Data, pw *playwright.Playwright) error

Function prototype for per-platform participant count scraping

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL