• 大小: 29KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-18
  • 语言: Java
  • 标签: 爬虫  JAVA  

资源简介

此资源为爬虫项目,使用JAVA,采用多线程编程和队列。基于HttpCliet、Jsoup、FastJsonjar包实现。

资源截图

代码片段和文件信息

package pers.yb.zhihuspider.entity;

public class User {

private String name;
private String id;
private String isFollowed;
private String followingCount;
private String voteFromCount;
private String userType;
private boolean showSinaWeibo;
private String pinsCount;
private boolean isFollowing;
private String markedAnswersText;
private boolean isForceRenamed;
private int favoriteCount;
private double voteupCount;
private int commercialQuestionCount;
private boolean isBlocking;
private int followingColumnsCount;
private String headline;
private String urlToken;
private int participatedLiveCount;
private int followingFavlistsCount;
private boolean isAdvertiser;
private boolean isBindSina;
private double favoritedCount;
private boolean isOrg;
private double followerCount;
private String type;
private String avatarUrlTemplate;
private int followingTopicCount;
private String description;
private String avatarUrl;
private int hostedLiveCount;
private int isActive;
private int thankToCount;
private int mutualFolloweesCount;
private int markedAnswersCount;
private String coverUrl;
private int thankFromCount;
private int voteToCount;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getIsFollowed() {
return isFollowed;
}
public void setIsFollowed(String isFollowed) {
this.isFollowed = isFollowed;
}
public String getFollowingCount() {
return followingCount;
}
public void setFollowingCount(String followingCount) {
this.followingCount = followingCount;
}
public String getVoteFromCount() {
return voteFromCount;
}
public void setVoteFromCount(String voteFromCount) {
this.voteFromCount = voteFromCount;
}
public String getUserType() {
return userType;
}
public void setUserType(String userType) {
this.userType = userType;
}
public boolean isShowSinaWeibo() {
return showSinaWeibo;
}
public void setShowSinaWeibo(boolean showSinaWeibo) {
this.showSinaWeibo = showSinaWeibo;
}
public String getPinsCount() {
return pinsCount;
}
public void setPinsCount(String pinsCount) {
this.pinsCount = pinsCount;
}
public boolean isFollowing() {
return isFollowing;
}
public void setFollowing(boolean isFollowing) {
this.isFollowing = isFollowing;
}
public String getMarkedAnswersText() {
return markedAnswersText;
}
public void setMarkedAnswersText(String markedAnswersText) {
this.markedAnswersText = markedAnswersText;
}
public boolean isForceRenamed() {
return isForceRenamed;
}
public void setForceRenamed(boolean isForceRenamed) {
this.isForceRenamed = isForceRenamed;
}
public int getFavoriteCount() {
return favoriteCount;
}
public void setFavoriteCount(int favoriteCount) {
this.favoriteCount = favorit

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-03-08 15:19  zhihuspider\
     文件        1663  2017-03-19 15:37  zhihuspider\.classpath
     文件           6  2017-03-03 11:10  zhihuspider\.gitignore
     文件         387  2017-03-03 11:16  zhihuspider\.project
     目录           0  2017-03-03 11:10  zhihuspider\.settings\
     文件         598  2017-03-03 11:10  zhihuspider\.settings\org.eclipse.jdt.core.prefs
     目录           0  2017-03-19 15:37  zhihuspider\bin\
     目录           0  2017-03-19 15:37  zhihuspider\bin\pers\
     目录           0  2017-03-19 15:37  zhihuspider\bin\pers\yb\
     目录           0  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\
     目录           0  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\entity\
     文件        8175  2017-03-19 16:34  zhihuspider\bin\pers\yb\zhihuspider\entity\User.class
     目录           0  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\manager\
     文件        5528  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\manager\HttpRequestService.class
     文件        1566  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\manager\OperateUser.class
     文件         719  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\manager\SimulateOperation.class
     文件         844  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\manager\SslUtils$1.class
     文件        1812  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\manager\SslUtils.class
     目录           0  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\tool\
     文件        1238  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\tool\CheckUrl.class
     文件        3128  2017-03-19 16:47  zhihuspider\bin\pers\yb\zhihuspider\tool\ParseHtml.class
     文件        2481  2017-03-19 17:03  zhihuspider\bin\pers\yb\zhihuspider\tool\ParseJson.class
     文件        1163  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\tool\ReadWriteLock.class
     文件         997  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\tool\SpiderThread.class
     文件         841  2017-03-19 15:37  zhihuspider\bin\pers\yb\zhihuspider\tool\TaskQueue.class
     目录           0  2017-03-08 15:19  zhihuspider\src\
     目录           0  2017-03-03 11:17  zhihuspider\src\pers\
     目录           0  2017-03-03 11:17  zhihuspider\src\pers\yb\
     目录           0  2017-03-10 17:00  zhihuspider\src\pers\yb\zhihuspider\
     目录           0  2017-03-10 16:05  zhihuspider\src\pers\yb\zhihuspider\entity\
     文件        7238  2017-03-19 16:34  zhihuspider\src\pers\yb\zhihuspider\entity\User.java
............此处省略12个文件信息

评论

共有 条评论