Fix deprecation warnings

Running project on the current version of Scrapy emits a deprecation warning. This PR fixes it, and adds a .gitignore file to ignore the *.pyc files.