def post(self):
        self._write_error(410)
        return
        url = self.request.get('url').strip()
        if not url:
            self._write_input_error('Missing "url" parameter')
            return

        try:
            start_date = datetime.datetime.strptime(
                self.request.get('start-date'), '%Y-%m-%d')
        except ValueError:
            start_date = datetime.datetime(1970, 1, 1)
        frequency = self.request.get('frequency')

        subscription = data.create_subscription(
            url,
            start_date,
            frequency)

        feed_info = data.get_feed_info_from_feed_url(url)
        feed_title = feed_info.title
        subscription_html_url = '%s/feed-playback/subscription/%s' % (
            CONSTANTS.APP_URL, subscription.id)

        subscription.create_reader_stream(
            intro_html_url=subscription_html_url,
            intro_title='Feed playback for "%s" has begun' % feed_title,
            intro_body=self._render_template(
                'feedplayback/intro-body.snippet', {
                  'subscription_html_url': subscription_html_url,
                  'feed_url': url,
                  'feed_title': feed_title,
                  'item_count': len(feed_info.item_ids) - subscription.position,
                  'frequency': _FREQUENCY_DISPLAY_NAMES[frequency],
                }))

        self._write_json(subscription.as_json_dict())
dataset/ETHPy150Open mihaip/streamspigot/app/feedplayback/handlers.py/CreateHandler.post/original