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

Uploaded Source

Built Distribution

wccls-3.1.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wccls-3.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.2 Windows/10

File hashes

Hashes for wccls-3.1.1.tar.gz
Algorithm Hash digest
SHA256 2cf0967d14bc54b26534789459bd9f0dd974b3d65e2e1584884bd8cf0054dddf
MD5 7c7616f6ca8567edb1dfd91e7dd1fa6a
BLAKE2b-256 b46515c463701dbb4baaeae16ca81da2405fd4b784a3e52eab89cd671af506d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wccls-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.2 Windows/10

File hashes

Hashes for wccls-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41f70d46df18abd994e5fc7b26ba36fca3095d7de5f1337bb0ffd1eb6718e6b2
MD5 5a33aea210440b233d98478a63e6ed95
BLAKE2b-256 b9579995cd0e7f15a1a82135c508f3c74d75728de931d1b2dd0d80fc74f585b2

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