jamesturk / spatula

A modern Python library for writing maintainable web scrapers.
https://jamesturk.github.io/spatula/
MIT License
244 stars 11 forks source link

Retries - Bad Pattern #35

Closed styledev closed 2 years ago

styledev commented 2 years ago

Describe the bug The example code on https://jamesturk.github.io/spatula/advanced-techniques/#retries for Retries does not work. spatula test RejectPartialPage(source=URL("https://openstates.org", retries=3)) zsh: bad pattern: RejectPartialPage(source=URL(https://openstates.org, retries=3))

Environment MacOS Montery Python 3.10.7 spatula, version 0.9.0

jamesturk commented 2 years ago

Hi! RejectPartialPage(source=URL("https://openstates.org/", retries=3)) is Python code, not meant to be on the command line.