Skip to main content

A Simple Distributed Web Crawle

Project description

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.spider import Spider, SimplifiedDoc
class DemoSpider(Spider):
  name = 'demo-spider'
  start_urls = ['http://quotes.toscrape.com/']
  allowed_domains = ['quotes.toscrape.com']
  def extract(self, url, html, models, modelNames):
    doc = SimplifiedDoc(html)
    lstA = doc.listA(url=url["url"])
    return [{"Urls": lstA, "Data": None}]

from simplified_scrapy.simplified_main import SimplifiedMain
SimplifiedMain.startThread(DemoSpider())

pip install

pip install simplified-scrapy

Examples

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplified_scrapy-2.0.1.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplified_scrapy-2.0.1-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

File details

Details for the file simplified_scrapy-2.0.1.tar.gz.

File metadata

  • Download URL: simplified_scrapy-2.0.1.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Darwin/25.0.0

File hashes

Hashes for simplified_scrapy-2.0.1.tar.gz
Algorithm Hash digest
SHA256 7c47d2e8d01db2d12dbfe3ca6a57d8c1d717290ee9dbcb430df1533c633ee62e
MD5 b1231d83935c57cfdd63e7cb59e3393b
BLAKE2b-256 d9c9d434399fe908de70ce832b807916797986cc2dab0a7e1dc825fef375196a

See more details on using hashes here.

File details

Details for the file simplified_scrapy-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: simplified_scrapy-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 55.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Darwin/25.0.0

File hashes

Hashes for simplified_scrapy-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4526b899bda0f559a19f7292add2637ab6113f49d0ff5a42c01cc2417e3a431
MD5 f9705d6426edbc226731fa3da52d37f4
BLAKE2b-256 1e45776c30e97c39bb442c98c4c5ee9ba21b02686e16ccb546d7c8fb6e77ab80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page