# weibo-influence-analyzer **Repository Path**: dewafer/weibo-influence-analyzer ## Basic Information - **Project Name**: weibo-influence-analyzer - **Description**: Bluemix演示App:微博影响力分析器 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2015-06-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微博影响力分析器 # ## 程序概况 ## 这是新浪微博版的 [`bluemix-java-sample-twitter-influence-app`](https://github.com/ibmjstart/bluemix-java-sample-twitter-influence-app/ "bluemix-java-sample-twitter-influence-app") ,使用Cloudant JSON-DB作为后台数据库。 ## License ## Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ## 使用方法 ## * [《 基于Bluemix快速构建部署一款Java小程序——微博影响力分析器》](http://blog.csdn.net/dewafer/article/details/42125509) * [`pushing-the-app-using-eclipse`](https://github.com/ibmjstart/bluemix-java-sample-twitter-influence-app#pushing-the-app-using-eclipse)(英文)。 ### * 源代码下载 ### 您可以使用下方的链接下载zip包或者直接克隆本代码仓库。 | Download Zip | [`https://github.com/dewafer/weibo-influence-analyzer/archive/master.zip`](https://github.com/dewafer/weibo-influence-analyzer/archive/master.zip) | |-----------|---------------------------------------------------------------------| | Git Clone:| `git clone https://github.com/dewafer/weibo-influence-analyzer/archive/master.zip` | ### 注意 ### * 发布前请先配置环境变量: | 环境变量名 | 对应值 | |----------------------|---------------| | WEIB_CLIENT_ID | 微博App Client | | WEIBO_CLIENT_SERCRET | 微博App Secret | | BAIDU_MAP_AK | 百度地图AK | ## 变更履历 ## V1.2 * 中文化了程序界面。 * 使用百度地图替换了Google地图。 * 将Google的jQuery CDN替换为本地jQuery引用。 * 修改了微博API配置读取方式,从读取config.properties改为读取环境变量(System.getenv())。 * 增加了自动创建数据库功能(wangyq.cloudant.api.SimpleCloudantDBUtil#createDatabaseIfNotExists),首次链接时自动检测,如无数据库则自动创建。 V1.1 * Replaced twitter4j with weibo4j-oauth2. * Added a WeiboLoginServlet for login. * Added setCharacterEncoding in every servlet for better CN compatibility. * Removed klout sine we don't have the same service for Weibo. * Replaced search input with login button, so users can only analyzer oneself. May restore the search function later. * (NEW) Replaced Mongodb with Cloudant JSON-DB using Jackson and Apache HttpComponent. Review `wangyq.cloudant.api.SimpleCloudantDBUtil` and `wangyq.cloudant.api.HttpActions` for more details. ## 图片预览 ## ![001](screenshots/001.PNG "001_微博影响力分析器_主页") ![002](screenshots/002.PNG "002_微博影响力分析器_评分结果") ![003](screenshots/003.PNG "003_微博影响力分析器_评分结果(带地址的微博展示)") ![004](screenshots/004.PNG "004_微博影响力分析器_数据库结果") ![008](screenshots/008.PNG "微博影响力分析器_微博登陆") ![007](screenshots/007.PNG "微博影响力分析器_微博授权") ![picture6](screenshots/picture6.png "picture6") ![picture7](screenshots/picture7.png "picture7") ![picture8](screenshots/picture8.png "picture8") ![picture10](screenshots/picture10.png "picture10") ![picture11](screenshots/picture11.png "picture11") ![006](screenshots/006.PNG "006_微博影响力分析器_在Cloudant数据库中保存的数据") ![005](screenshots/005.png "005_微博影响力分析器_程序结构")