Spotting for a month

I had a miscarriage on September 6th then got a period. Now I am still spotting today. What is going on.