Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

社交网络数据抓取,以及CRM系统

基于Java实现。

项目内容


项目简介

项目起因

本项目主要服务于社交网络数据抓取底层架构。

项目框架

sns-dao: 数据接口层

sns-hdfs: HDFS服务层

sns-parser: 页面解析层

sns-core: 系统核心层

sns-web: API接口服务层

备注: 框架持续更新中。

API文档

项目wiki

备注: API文档统一放在公司的wiki上。


项目架构

  1. Parser: 用于页面解析。
  2. MySQL: 用于存储基本爬虫数据。
  3. Redis: 用于数据去重,基本思想是存储每条数据的md5(key),根据该值进行数据插入更新判断。

常见约束词

Item Value
Dao Interface接口层
Domain 数据
Constant 常量
Util 工具

示例代码

    ** Redis层调用 **      
        // 对象申明      
	RedisCache redisCache = new RedisCache("hdp321", 6379, "zxsoft");
	String key = "record_key_md5";
	String[] members = { "v1", "v2", "v3", "v4", "v5", "v3" };
	redisCache.sadd(key, members);
	System.out.println(redisCache.scard(key));
	System.out.println(redisCache.sismember(key, "v3"));
	System.out.println(redisCache.sismember(key, "v6"));
	redisCache.sadd(key, "v5", "v7");
	System.out.println(redisCache.scard(key));
	System.out.println(redisCache.smembers(key));
	
    ** 启动脚本 ** 

开发人员

WeChat: wgybzb

QQ: 1010437118

E-mail: wgybzb@sina.cn

Comments ( 0 )

Sign in for post a comment

About

社交网络数据抓取,以及CRM系统。 spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more