One thing to remember is that you're not alone. There are lots of people who've struggled with job searches and staying motivated but have pushed through and found the job of their dreams. It's not always quick or easy, but it can and will happen.
"You're braver than you believe, and stronger than you seem, and smarter than you think.”
— A.A. Milne