def get_community_by_name(self, name, token=None):
parameters = dict()<EOL>parameters['<STR_LIT:name>'] = name<EOL>if token:<EOL><INDENT>parameters['<STR_LIT>'] = token<EOL><DEDENT>response = self.request('<STR_LIT>', parameters)<EOL>return response<EOL>
Get a community based on its name.

:param name: The name of the target community.
:type name: string
:param token: (optional) A valid token for the user in question.
:type token: None | string
:returns: The requested community.
:rtype: dict