Scrapy not getting date as item argument
<p>I have this code, i want to add as an item argument the current date, i've found different solutions on the web but i keep getting TypeError: 'str' object is not callable or TypeError: 'ItemMeta' object does not support item assignment</p>

<p>my code is this:</p>

<pre><code>datascrape = time.strftime("%d/%m/%Y") #also tried str(datetime.datetime.today())
item['dataoggi'] = datascrape() #i tried also datascrape without ()
</code></pre>

<p>How can i get as an item argument the date of the scrape?</p>

<p>Updated code:</p>

<pre><code>from bot.items import botitem
import time

class NetbotSpider(scrapy.Spider):
    name = "netbot"
    allowed_domains = ["example.com"]
    start_urls = (
        'http://example.com'
    )

    def parse(self, response):

        stati = response.xpath('/html/body//div/table/tbody//tr//td//img//@title').extract()
        numeri = response.xpath('/html/body//div/table/tbody//tr[2]//td/text()').extract()
        for i in range(1, len(stati)):
            item = botitem()
            datascrape = time.strftime("%d/%m/%Y")
            botitem['dataoggi'] = datascrape
            botitem['state'] = stati[i]
            botitem['number'] = numeri[i]

        print botitem
</code></pre>