Butt is bleeding/constipation since antibiotics

I recently finished antibiotics and ever since then ive been having a hard time pooping. I’m constipated and my poop comes out in balls and they’re hard. I’m also seeing blood on the tissue and sometimes in the toilet. What do you recommend I take? I don’t wanna go to the doctor if I can fix it at home