<reponame>zack-wilson/scrapy-statsd<filename>tests/dummy_project/spiders/dummy_spider.py
# -*- coding: utf-8 -*-
import datetime as dt
import uuid

import scrapy


class DummySpiderSpider(scrapy.Spider):
    name = "dummy_spider"
    allowed_domains = ["example.com"]
    start_urls = ["http://example.com/"]

    def parse(self, response):
        yield {
            "uuid": str(uuid.uuid1()),
            "timestamp": dt.datetime.now(),
            "url": response.url,
        }

# -*- coding: utf-8 -*-
import datetime as dt
import uuid

import scrapy


class DummySpiderSpider(scrapy.Spider):
    name = "dummy_spider"
    allowed_domains = ["example.com"]
    start_urls = ["http://example.com/"]

    def parse(self, response):
        yield {
            "uuid": str(uuid.uuid1()),
            "timestamp": dt.datetime.now(),
            "url": response.url,
        }
# -*- coding: utf-8 -*-