Start a new topic

Issue with dependencies


I add the UNIX timestamp to the item using an item pipeline. In essence, my code is:

import datetime

item['timestamp'] =

Although datetime comes pre-installed with Python on my machine, it was not available on Scrapinghub, and, therefore, resulted in errors. I used the instructions ast to include datetime as a dependency in the requirements.txt file. After deploying my project to Scrapinghub I got the error that now() does not exist in datetime.datetime.

What am I doing wrong here? Am I missing something?

1 Comment

What error or what problem did you encounter with Python's built-in datetime module?

Did you check the Meta parameter "_ts"

Login to post a comment