CHALLENGES WITH DEBUGGING
I am in the process of writing a script to scrape the data from the library of congress. I am using the Query language called SRU, but I have to combine it with Python for the loop. I am using a module created by an individual that allows me to use SRU with python. However, I am currently facing multiple issues associated with the module. The main error I am having is a server error which prevents me from getting any data. So far, I cannot detect the origin of the issue, but I know that this only happens during the loop. If I try to isolate the issue by making a single request with the same keywords, I do not get the error.
With an issue like this, I can only rely on my past experience and try to debug the script in the best way possible. This is easier said than done as SRU is not so popular query language, so finding support for it is hard. I cannot rely on resources such as StackOverflow or any online forum. This is going to be the first time where I will rely mostly on myself to solve a coding problem. I will try to apply the method of handling problems I learned earlier during this internship: I will spend more time on the script, make some modifications and try to anticipate any error before running it. Once I run the program and get any unexpected exception, I will take a look at the error message, and try to isolate it by splitting the script into as many pieces as possible. However, I have been on this part of the project for too long so I have to finish it as soon as possible.
Connections with Experience
Comments
Post a Comment