Initialize the writer and url in one go.