views:

77

answers:

2

How can I make a Python script which checks if I have logged in the Facebook? If I haven't, it should log me in.

+1  A: 

Being "logged in" to Facebook (or any system for that matter) is generally a contract between the server and the client - and not just a "flipped bit" on the server.

As an example, if you log into Facebook on you phone - you can't then pull up Facebook on your desktop machine and be logged in.

In short - no, I don't think so.

Peter Bailey
+1  A: 

The answer to your question is aptly given by Peter. But if your purpose is to remove repetitive work, then I would suggest you use iMacros for Firefox.

You could program repetitive tasks (like logging in etc.) once & the next time all that needs to be done is run that routine.

MovieYoda