Metadata-Version: 2.1
Name: simplified-scrapy
Version: 1.2.136
Summary: A Simple Distributed Web Crawle
Home-page: https://github.com/yiyedata/simplified-scrapy
Author: yiyedata
Author-email: 3095069599@qq.com
License: MIT License
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# simplified-scrapy
simplified scrapy, A Simple Web Crawle
# Requirements
+ Python 2.7, 3.0+
+ Works on Linux, Windows, Mac OSX, BSD
# run  
```
from simplified_scrapy.simplified_main import SimplifiedMain
SimplifiedMain.startThread()
```
# Demo
Custom crawler class needs to extend Spider class
```
from core.spider import Spider 
class DemoSpider(Spider):
```
Here is an example of collecting data
```
from simplified_scrapy import Spider, SimplifiedDoc, SimplifiedMain
class DemoSpider(Spider):
  name = 'demo-spider'
  start_urls = ['http://quotes.toscrape.com/']
  allowed_domains = ['www.toscrape.com']
  def extract(self, url, html, models, modelNames):
    doc = SimplifiedDoc(html)
    lstA = doc.listA(url=url["url"])
    return [{"Urls": lstA, "Data": None}]

SimplifiedMain.startThread(DemoSpider())
```

# pip install
```
pip install simplified-scrapy
```
[Examples](https://github.com/yiyedata/simplified-scrapy-demo)

# Legal Issues
In particular, please be aware that

>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Translated to human words:

In case your use of the software forms the basis of copyright infringement, or you use the software for any other illegal purposes, the authors cannot take any responsibility for you.

We only ship the code here, and how you are going to use it is left to your own discretion.

