scrapy / scrapely

A pure-python HTML screen-scraping library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import Error: Cannot import name 'Scraper'

mattdbr opened this issue · comments

I'm trying to build something with the Scrapely library. After a bit of fixing I finally got all install issues out of the way.
Running the sample code:

from scrapely import Scraper
s = Scraper()
url1 = 'http://pypi.python.org/pypi/w3lib/1.1'
data = {'name': 'w3lib 1.1', 'author': 'Scrapy project', 'description': 'Library of web-related functions'}
s.train(url1, data)

I get the error:

Import Error: Cannot import name 'Scraper'

How would I fix this?

Found out it was because 3 hadn't been released properly yet.

I face this problem now, how did you solve it ? what do you mean by 3 ?

There is no python 3 port of scrapely yet