Skip to content

suggested updates to crawler.py #227

@raybellwaves

Description

@raybellwaves

Cool project!

I wanted to start small and understand what this project does.

I updated crawler.py here https://github.com/raybellwaves/asap_pdf/blob/uv-inline-deps/python_components/crawler/crawler.py

I didn't bother making a PR as this is mostly developer choice.

I used uv inline deps so anyone can run the code as it (with https://docs.astral.sh/uv/ installed). e.g.

uv run https://raw.github.com/raybellwaves/asap_pdf/refs/heads/uv-inline-deps/python_components/crawler/crawler.py \
    https://www.whitman.edu/academics/departments-and-programs/mathematics \
    output.csv \
    --depth 1

For full transparency I did use AI to help: https://claude.ai/share/a5534af1-24ed-4c18-a04d-7747b06254b0

It identified things like unused imports but you also get those from running https://docs.astral.sh/ruff/

Keep up the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions