https://github.com/jefftriplett/pholcidae-demo
:spider: A Pholcidae demo for crawling/spidering a website
https://github.com/jefftriplett/pholcidae-demo
crawler csv pholcidae python scrapper scrapy-crawler spider toml
Last synced: 12 months ago
JSON representation
:spider: A Pholcidae demo for crawling/spidering a website
- Host: GitHub
- URL: https://github.com/jefftriplett/pholcidae-demo
- Owner: jefftriplett
- License: bsd-3-clause
- Created: 2017-11-30T05:11:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-22T21:10:50.000Z (over 8 years ago)
- Last Synced: 2025-02-27T08:08:32.046Z (over 1 year ago)
- Topics: crawler, csv, pholcidae, python, scrapper, scrapy-crawler, spider, toml
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pholcidae Demo
[Pholcidae](https://github.com/bbrodriges/pholcidae) is a "Tiny python web crawler" which makes writing customer spiders for checking for bad links on websites easily.
This is a simple demo that I use as a starting point for building a crawler.
The website's status code and URL are printed in CSV parse-able output.
## Installation
```shell
$ git clone git@github.com:jefftriplett/pholcidae-demo.git
$ cd pholcidae-demo
$ pipenv install
```
## Usage
```shell
$ python spider.py
Usage: spider.py [OPTIONS] URL
Options:
-t, --threads INTEGER
--help Show this message and exit.
Usage Examples:
Spider localhost with two threads:
$ python spider.py --threads=2 http://localhost:8000/
200,http://localhost:8000/
200,http://localhost:8000/about/
200,http://localhost:8000/blog/
writing localhost-8000.toml
done
# view results in toml format for easy digestion
$ cat localhost-8000.toml
["http://localhost:8000/"]
status = "200"
["http://localhost:8000/about/"]
status = "200"
["http://localhost:8000/blog/"]
status = "200"
```
## Contact / Social Media
Here are a few ways to keep up with me online. If you have a question about this project, please consider opening a GitHub Issue.
[](https://github.com/jefftriplett)
[](https://jefftriplett.com/)
[](https://twitter.com/webology)
[](https://hub.docker.com/u/jefftriplett/)