Skip to main content

A scraper and summarizer for caliap

Project description

calisum - A caliap activity scraper and summarizer

This is a simple Python script that scraps Caliap and allow to you tu summarize your activity using the LLM of your choice.

Installation

pip install calisum

Usage

usage: calisum [-h] [--version] [-v] [-O OUTPUT] [-o] [-j] [-e EMAIL] [-p PASSWORD] [-c COOKIE] [-l LLM_URL] [-t LLM_TOKEN] [-n] [-m MODEL_ID] [-g] [url_to_scrape]

Summarize Caliap activity data.

options:
  -h, --help            show this help message and exit
  --version             Display the version of the package.
  -v, --verbose         Increase the verbosity of the output.
  -O OUTPUT, --output OUTPUT
                        Output file to save the summary to. default to stdout
  -o, --original-output
                        Output the original data instead of the summary.
  -j, --json            Output the result as json

Scraper options:
  url_to_scrape         URL to scrape the data from.
  -e EMAIL, --email EMAIL
                        Email address to use for authentication. Must be used together with --password.
  -p PASSWORD, --password PASSWORD
                        Password to use for authentication. Must be used together with --email.
  -c COOKIE, --cookie COOKIE
                        Cookie to use for authentication (PHPSESSID). Mutually exclusive with --email and --password.

LLM options:
  -l LLM_URL, --llm-url LLM_URL
                        URL to the LLM page open api endpoint (compatible with openai api standard).
  -t LLM_TOKEN, --llm-token LLM_TOKEN
                        LLM token (usefull with openai)
  -n, --jan-ai          Use localhost default jan-ai config.
  -m MODEL_ID, --model-id MODEL_ID
                        OpenAI form model id (eg: mistral-ins-7b-q4)
  -g, --global-summary  Do a global summary of individual activity (works only if original output is not selected)

License

GPL-3.0

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

calisum-1.1.3.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

calisum-1.1.3-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file calisum-1.1.3.tar.gz.

File metadata

  • Download URL: calisum-1.1.3.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for calisum-1.1.3.tar.gz
Algorithm Hash digest
SHA256 1eea9e1d2edc2bb22f19c0121036a26704312bb348fc3587106ae2265c674731
MD5 a19e6aaebf8cc2a9b4137e182b1acac1
BLAKE2b-256 48d8743e4cef94a8d3b6648b665720561d0ec443f6fff3c6d4af468611aaa107

See more details on using hashes here.

File details

Details for the file calisum-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: calisum-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for calisum-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8604be9dc4dacd325bf0caa46ba68346796fc33d9c9302b55dbc24e41ffc6b63
MD5 51233e9234515632f1a8c427af5c34bc
BLAKE2b-256 f4527309bd004477f5ab0165929f67612e48cec85427e7a04c83bd38349e2995

See more details on using hashes here.

Supported by

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