1

I just learned how to read and send emails using python and I read that you can create a python script that can read someone's twitter or facebook and send you an email whenever a specific person posts something on twitter or facebook, but how does this work?

What is the difference between a script and just a regular program? I don't think that if someone is doing something like this that they would need to have their computer on at all times and have the python program running in the background, or is that what is happening?

3
  • 1
    "I don't think [...] they would need to have their computer on at all times and have the python program running in the background" Correct. Generally they use other people's computers by renting a server e.g. AWS, rackspace etc. Commented May 14, 2017 at 18:16
  • 1
    I think what you are looking for is a Cloud Application Platform, like Heroku. Script and program are synonyms as far as I know. Commented May 14, 2017 at 18:16
  • 1
    You assumed correctly about "computer which is on at all times" :) You will hear people referring to it as a "server" many times! Commented May 14, 2017 at 18:16

1 Answer 1

5

A python script is a kind of program.

To make what you're talking about, you'd need to either have some kind of notification when someone tweets or something to check constantly for new content.

Either way, the computer will have to be on at all times (for that, you could use a Raspberry Pi for example, so you don't take that much power). (EDIT : you can of course also have a server doing that for you, but it's still a computer running at all times.)

You'll need to get your hand onto the Twitter API documentation. There is probably a python wrapper.

(EDIT:Tweepy - Would be the aforementioned python wrapper)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.