binux / pyspider

A Powerful Spider(Web Crawler) System in Python.
http://docs.pyspider.org/
Apache License 2.0
16.47k stars 3.69k forks source link

Why can't edit script locally? #348

Closed Monk-Liu closed 8 years ago

Monk-Liu commented 8 years ago

Thx binux for creating such great tool. Pyspider is powerful,concise and elegant. But I just can't understand why the only way to edit script locally is mounting the http://localhost:5000/dav/ to localhost? So I was just a newbie, and don't know why pyspider is desgined like that. Can we write the script the common way?

binux commented 8 years ago

pyspider is designed to be distributed, projects on local disk make it hard to share and manage between machines.

On Wed, 2 Dec 2015 11:41 刘琦帆 notifications@github.com wrote:

Thx binux for creating such great tool. Pyspider is powerful,concise and elegant. But I just can't understand why the only way to edit script locally is mounting the http://localhost:5000/dav/ to localhost? So I was just a newbie, and don't know why pyspider is desgined like that. Can we write the script the common way?

— Reply to this email directly or view it on GitHub https://github.com/binux/pyspider/issues/348.

xiyoulaoyuanjia commented 8 years ago

@binux v0.4.0 todo " load script from file." does not mean edit script locally and load from local file?

binux commented 8 years ago

This feature is to mimc project database using local file. You can use it now: http://docs.pyspider.org/en/latest/Deployment/#database-connection-uri

It should work just like webdav mode, but you cannot deploy distributed using this project database backend.