TMI! Help please! Excessive diarrhea 🙃

So I’m 31 weeks pregnant but I have had diarrhea for the past couple of days. And it’s been awful. Like I go at least once an hour. Does anyone know why this is happening? Like is this a normal pregnancy thing or should I get checked by my doctor? I have an appointment this Thursday but I honestly don’t know what to do at this point. My stomach is crampy. Not like period cramps but upset stomach cramps. And I’m a bit shaky and lightheaded. Is this normal? Is there anything I can take for this?