Skip to main content

Scraper for the WCCLS account page

Project description

Overview

This is a read-only scraper for the WCCLS account page. It also works for the Multnomah County Bibliocommons site

Usage

image codecov

from wccls import Wccls, WcclsAsync
items = Wccls(login=card_number_or_username, password=password)
for item in items:
    print(item)

items = await WcclsAsync(login=card_number_or_username, password=password)
for item in items:
    print(item)

Running tests

Run against the live website

  • Set the environment variables to show what the expected counts are for the various categories

  • Run

pytest

To record new test data

Set SCRUB_EMAIL, WCCLS_CARD_NUMBER, WCCLS_PASSWORD environment variables

pytest --collect=save

To test existing test data

pytest

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

wccls-3.1.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

wccls-3.1.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file wccls-3.1.2.tar.gz.

File metadata

  • Download URL: wccls-3.1.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.8 Darwin/21.4.0

File hashes

Hashes for wccls-3.1.2.tar.gz
Algorithm Hash digest
SHA256 b05ada644ac5144c56d40429ea6f3dae89d5bf55ded18b23b151cdbab1787697
MD5 25887c934257e888c06bea3f53d3de12
BLAKE2b-256 7d105e826418b3dac09efd3248ffa1aeaa622299fa63563c1e882a2877364ce3

See more details on using hashes here.

File details

Details for the file wccls-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: wccls-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.8 Darwin/21.4.0

File hashes

Hashes for wccls-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cbced3df9ec1c35d3f66f678867b95e03699b08a9daf89eb98e79b592b18edbd
MD5 ac2bbc54b7380fb9c870ed15a30c222a
BLAKE2b-256 1e20be0c928789ff06979ee75f8785a6a0c8b30b75a7df84b8463602e2650516

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