Selenium search page with user input + return result via text file -- 2

Job ID: 30941735

Budget: £10 – £20 GBP

Refer to attached file.

I'm working with Selenium in Python. I already have a script setup to login and navigate to a page. Now I need your snippet to allow user input, then to search for users keyword (within the areas highlighted with an X) if found, return the link of the profile (highlighted without the X) to a text file.

Keep in mind the snippet needs to search more than two results on a page. The image is an example.