scrapy / scrapely

A pure-python HTML screen-scraping library
1.86k stars 315 forks source link

Import Error: Cannot import name 'Scraper' #75

Closed mattdbr closed 9 years ago

mattdbr commented 9 years ago

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?

mattdbr commented 9 years ago

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

ahmedezzeldin93 commented 7 years ago

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

mattdbr commented 7 years ago

There is no python 3 port of scrapely yet