w3lib has changed version, so the example should be: data = {'name': 'w3lib 1.1', 'author': 'Scrapy project', 'description': 'Library of web-related functions'} If not, it raises a FragmentNotFound exception.