Skip to content
Advertisement

Tag: traceback

Python: href tag TypeError

I tried running my web scraping code. Sometime it works fine, but sometime it will give me Traceback Type Error code. I am wondering what is causing the error code? Here is the error message: Answer You have to check if nextLink is not None before you try to get [‘href’] and when nextLink is None then it can return

Advertisement