My program needs to do 2 things.
Extract stuff from a webpage.
Do stuff with a webpage.
However, there are many webpages, such as Twitter and Facebook.
should I do this?
def facebookExtract():
code here
def twitterExtract():
code here
def myspaceExtract():
code here
def facebookProcess():
code here
def twitterProcess():
code here
def myspaceProcess():
code here
Or, should I have some sort of class? When is it recommended to use classes, and when is it recommend to just use functions?