I feel scraping on my anus when I poop. What do I do to get rid of this pain?

See a doctor ... It might be hemorrhoids, in which case you could try OTC hemorrhoid preparations, like hydrocortisone. HOWEVER, it might be something more serious, so you should have it checked by your doctor or see a gastroenterologist (a specialist in that area). Your age is not listed in your records, but, the older you are, the greater risk you have of colon cancer, so, have a doc check it out.
Hemorrhoid cream. Try some hemorrhoid cream that can calm down itching and irritation.