Skip to content

2025506282/gold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gold

This project was generated with Angular CLI version 8.1.2.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

沙漠闹黄金

1、简介

这是一个关于新闻辨别真伪的项目,每个人的评论意见都会记录下来,每个人刚出生都是0分,意见对了+1,错了-1,中性 + 0;主要分为三个模块

爬虫模块

黄金模块

新闻模块

2、技术选型

前端 Angular8 + Ant Design of Angular

后端 Node + Express + MongoDB

3、项目模块

3.1、爬虫模块

爬虫模块分为多页面爬取和单页面爬取

3.1.1、单页面爬取

单页面爬取,根据用户传入的url,进行爬取其中相应内容,传入表格

名称 Element
最新价 .latest-price 312.12

3.1.2、多页面爬取

多页面爬取, 首先根据传入的一个url, 获取多个url后, 后续步骤如单页面爬取一样

3.1.2.1、页面介绍

爬取历史,新建多页面爬取,编辑爬取内容,删除爬取,详情

list---爬取时间、爬取url、爬取选择器、查看、删除、编辑、查找

3.1.2.2、 爬取数据格式

3.1.2.2.1、 传入参数
interface IElement {
    id: string, // id
    name: string, // 名称别名
    selector: string, // 选择器
    value: string, // 值
}
interface IElementSingle {
    url: string,
    element: IElement[]
}
interface IElementMultiple {
    urls: string[],
    element: IElement[]
}

About

黄金股票数据分析

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published