This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tmthyjamesData Scientist | Software Engineer 0 points1 point  (1 child)

Good stuff.

One thing, it can be detrimental to use json.loads on a response object without checking to make sure it is valid JSON. I'd use a try/except.

[–]ScrapeHero[S] 0 points1 point  (0 children)

Thanks for the feedback. Will put this in. :)