Does anyone else feel like your pooing out a baby

Sitting on the toilet for more then 20-30 mins a go to just have nothing come out - but sitting in pain like I’m going to faint

I’m so constipated what can I do please help