-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hey Alec, really great work you've done on this package! I've been playing around with it locally and I've run into an issue when trying to make this foundational call:
from shopgoodwill_pkg.src.ShopGoodwill import ShopGoodwill
sgw = ShopGoodwill()
sgw.show_categories(show_children=False)It's triggering the RuntimeError described here in ShopGoodwill.py:
raise RuntimeWarning('Failed to retrieve and parse ShopGoodwill sellers or categories. Check your internet connection.')
Since I was able to run example.py just fine, I was skeptical that this was truly a RuntimeError. I put in a bunch of pdb statements and was able to track down the cause of the issue.
The data that's returned here returns a huge list of locations, but does not contain any category information at all. Thus, the needed categoryListModel and categoryModel keys shown below are missing from the dictionary.
ShopGoodwill/src/ShopGoodwill/ShopGoodwill.py
Line 154 in cbae939
| categories = val[1]['body']['categoryListModel']['categoryModel'] |
I'd be happy to submit a PR to fix this if you could give me some direction on how to access the categoryListModel from another web page on their site, perhaps? I'm not sure how I'd go about finding that.
Thanks!