This is like the joke about plagiarizing an essay: You can beat the automated check tools by using multiple sources of information and then re-writing them in your own words.
Also Copyright protects the expression of an idea, not the idea itself (that would be patent). You don't have to go through this much trouble to write code that achieves the same output.