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

Uploaded Source

Built Distribution

calisum-1.1.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: calisum-1.1.1.tar.gz
  • Upload date:
  • Size: 22.1 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.1.tar.gz
Algorithm Hash digest
SHA256 350400488c7e8d4436133e64238da0d3cf947eee2443947a52bf8c17ae359422
MD5 688c1c9193da87dda4199235d07c99ef
BLAKE2b-256 b258d8170fc57779023821298526f52d1e480dbfdacd66e2f3010b249af6df95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: calisum-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95b90d72b586512dcb60b03a288fbf05b3c13ece99e3eab7e25276bac4a5b681
MD5 7b397e823bd76cf851e636c06e050f07
BLAKE2b-256 65621c36e0b2b784cd7fa2ad43a7a5ebd933f0023027ccbc3870289e97b4da0d

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