Skip to content

rkhwaja/wccls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

To record new test data (also test against live website)

Set SCRUB_EMAIL, WCCLS_CARD_NUMBER, WCCLS_PASSWORD environment variables

Make a new directory tests/filesets/new_fileset

pytest --collect=save -k new_fileset

And check the new output.json against reality

To test existing test data

pytest

About

Scraper for WCCLS account page

Resources

License

Stars

Watchers

Forks

Packages

No packages published