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.2.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: calisum-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e67bb443520f8024e4e4a34a8e494b8fc413043c824660cbd1c834fe7c7a1c1b
MD5 46cc757cb6baa23bdc90b065f1d3dd11
BLAKE2b-256 7ea9cda8b5cb4be81081eb393474816a606ede0d58ffa5e63219e171a6ea580f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: calisum-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 92ca0c2eb0f0e5caa9a09012bf058138b6f7f5eb33f1bc56df6e3ae1dcc60b6d
MD5 28fde57719510b0f42bb044823ee8e83
BLAKE2b-256 f79a8f780f1b532d15feb2c2c16c68054551dc9b75c160602a7e69465f88ec20

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