I've been using Scrapy
web-scraping framework pretty extensively, but, recently I've discovered that there is another framework/system called pyspider
, which, according to it's github page, is fresh, actively developed and popular.
pyspider
's home page lists several things being supported out-of-the-box:
Powerful WebUI with script editor, task monitor, project manager and result viewer
Javascript pages supported!
Task priority, retry, periodical and recrawl by age or marks in index page (like update time)
Distributed architecture
These are the things that Scrapy
itself doesn't provide, but, it is possible with the help of portia
(for Web UI), scrapyjs
(for js pages) and scrapyd
(deploying and distributing through API).
Is it true that pyspider
alone can replace all of these tools? In other words, is pyspider
a direct alternative to Scrapy? If not, then which use cases does it cover?
I hope I'm not crossing "too broad" or "opinion-based" line.
pyspider and Scrapy have the same purpose, web scraping, but a different view about doing that.
spider should never stop till WWW dead. (information is changing, data is updating in websites, spider should have the ability and responsibility to scrape latest data. That's why pyspider has URL database, powerful scheduler,
@every
,age
, etc..)pyspider is a service more than a framework. (Components are running in isolated process, lite -
all
version is running as service too, you needn't have a Python environment but a browser, everything about fetch or schedule is controlled by script via API not startup parameters or global configs, resources/projects is managed by pyspider, etc...)pyspider is a spider system. (Any components can been replaced, even developed in C/C++/Java or any language, for better performance or larger capacity)
and
on_start
vsstart_url
download_delay
return json
vsclass Item
Pipeline
set
In fact, I have not referred much from Scrapy. pyspider is really different from Scrapy.
But, why not try it yourself? pyspider is also fast, has easy-to-use API and you can try it without install.