I would recommend contacting the folks at O'Reilly to see if what you are doing is in compliance with their Terms of Service. They have a contact page here, I imagine this is a "General Inquiry".
Once you can show that the good folks at ORA think what you are doing is okay, post the code that's giving you troubles.