<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_from_postcode(postcode, distance):
 """ Request all postcode data within `distance` miles of `postcode`. :param postcode: the postcode to search for. The postcode may contain spaces (they will be removed). :param distance: distance in miles to `postcode`. :returns: a list of dicts containing postcode data within the specified distance or `None` if `postcode` is not valid. """

    postcode = quote(postcode.replace(' ', ''))
    return _get_from(distance, 'postcode=%s' % postcode)