Hi,
I think what you want is possible to be written in Python, I have created a small program before which searches Social Media such as Twitter and public posts on Facebook.
If you could give me more information I could give you more detail on what is possible and when.