Skyscraper
YAML based lightweight crawlers
Installation
pip install skyscraper
Usage
Each web crawler is defined in a yml file
# the name of the crawler
name: Python 3.x docs
# the number of parallel thread workers
threads: 3
# start urls
params:
start_url: https://docs.python.org/3/index.html
# how/where the results are saved
results:
type: Json
file: "python.json"
# on each url labeled "result", results will be extracted using
# this scheme
result_extractor:
fields:
- name: title
rules:
select: h1
text: yes
single: true
# the first page is labeled "start" and for each extracted url, we label it
# accordingly. In this example, we extract the results directly from
# the first page
steps:
- name: start
label: start
extract:
- type: ahrefs
label: result
rules:
select: a.biglink
To run the crawler, execute
skyscraper run examples/python_docs.yaml
Metadata
Release files for skyscraper 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skyscraper-0.0.5.tar.gz | 4.2 kB | Without provenance | Details for skyscraper-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skyscraper-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for skyscraper-0.0.5-py3-none-any.whl |
Total release size: 10.3 kB
Release files / skyscraper-0.0.5.tar.gz
| Download URL | skyscraper-0.0.5.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5fb4f5ef39194a1f566a497da4053de27494c58e537d59afc09203c4e2fc74b
|
|
BLAKE2b-256 checksum How to use checksums |
85f0c76e3617212afc8b846f1cabf1a17931d31d128cd88213f92164b2537ca1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / skyscraper-0.0.5-py3-none-any.whl
| Download URL | skyscraper-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfd51f80d32e4c7e5803c6d9be2def7b2244141798cebda000ab986a1144e33e
|
|
BLAKE2b-256 checksum How to use checksums |
87215939f42b87fb68389b772342468eb0651cba700cc8f69dfa4345a5ad6635
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for skyscraper 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.