Skip to content

Marksagittarius/dut_spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中文文档

Dut Spider

A simple project about Web Spider made by python.

Features

  • Multi-thread Scheduling
  • Persistent Storage
  • Back-end Service
  • Routing Registered Configuration
  • Template Engine
  • Performance Monitoring
  • Description and Visualization
  • Interactive Interface
  • Command Line Tool
  • Dependency Management Shell

Usage

Install the vital packages(Windows)

$ ./env.bat

Install the vital packages(MacOS or Linux)

$ ./env.sh

Start all the tasks of spider.

$ python main.py -c

Render all the charts to html files.

$ python main.py -r

Deploy the server

$ python main.py -d

Example

$ python main.py -d
[Task: (taskName)]
......
Spider Time :(timeOfTask)s
......
$ python main.py -r
Render /(routerName)
....
$ python main.py -d
INFO:     Started server process [9092]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://localhost:8080 (Press CTRL+C to quit)

If you visit the default site, you will noly get a null json because there are three different routes, which are the solutions of three different problems.

About

A simple python project about spider.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published