Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
javasmall committed Jun 20, 2019
1 parent 25c5bb8 commit 0a0dc73
Show file tree
Hide file tree
Showing 229 changed files with 750 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/python.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

689 changes: 689 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions ghostdriver.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[INFO - 2019-06-13T07:47:38.173Z] GhostDriver - Main - running on port 37517
[INFO - 2019-06-13T07:47:39.016Z] Session [844ec9e0-8daf-11e9-9347-89bc23a8b880] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) PhantomJS/2.1.1 Version/9.0 Safari/602.1"}
[INFO - 2019-06-13T07:47:39.016Z] Session [844ec9e0-8daf-11e9-9347-89bc23a8b880] - page.customHeaders: - {}
[INFO - 2019-06-13T07:47:39.017Z] Session [844ec9e0-8daf-11e9-9347-89bc23a8b880] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO - 2019-06-13T07:47:39.017Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: 844ec9e0-8daf-11e9-9347-89bc23a8b880
[ERROR - 2019-06-13T07:47:39.041Z] RouterReqHand - _handle.error - {"line":40,"column":28}
12 changes: 6 additions & 6 deletions matplp/analyse/detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ def analyseinformation(lines):
print(len(name),len(time))
getspeaktimeall(time,name)#选定区间的同学发言次数
getemotionall(time,text,name,qq)
# for q in qq:#每个同学的
# try:
# getstudentcloudbyqq(value,q)
# getemotionbyqq(value,q)
# except Exception as e:
# print(e)
for q in qq:#每个同学的
try:
getstudentcloudbyqq(value,q)
getemotionbyqq(value,q)
except Exception as e:
print(e)



Expand Down
Binary file added matplp/analyse/img/1004366764cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1004366764emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1043863315cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1043863315emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1047521281cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1047521281emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1053912541cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1053912541emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1059205255cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1059205255emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1060110730cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1060110730emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1204136559cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1204136559emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1214223127cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1214223127emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1215935309cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1215935309emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1250469157cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1250469157emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1299401116cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1299401116emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1315426911cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1315426911emotion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1357434997cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matplp/analyse/img/1357434997emotion.png
Binary file added matplp/analyse/img/1365650746cloud.png
Binary file added matplp/analyse/img/1365650746emotion.png
Binary file added matplp/analyse/img/1424390793cloud.png
Binary file added matplp/analyse/img/1424390793emotion.png
Binary file added matplp/analyse/img/1426019383cloud.png
Binary file added matplp/analyse/img/1426019383emotion.png
Binary file added matplp/analyse/img/1458751590cloud.png
Binary file added matplp/analyse/img/1458751590emotion.png
Binary file added matplp/analyse/img/1462492739cloud.png
Binary file added matplp/analyse/img/1462492739emotion.png
Binary file added matplp/analyse/img/1591356870cloud.png
Binary file added matplp/analyse/img/1591356870emotion.png
Binary file added matplp/analyse/img/1602104418cloud.png
Binary file added matplp/analyse/img/1602104418emotion.png
Binary file added matplp/analyse/img/1615352623cloud.png
Binary file added matplp/analyse/img/1615352623emotion.png
Binary file added matplp/analyse/img/1694123166cloud.png
Binary file added matplp/analyse/img/1694123166emotion.png
Binary file added matplp/analyse/img/1695983436cloud.png
Binary file added matplp/analyse/img/1695983436emotion.png
Binary file added matplp/analyse/img/1738786470cloud.png
Binary file added matplp/analyse/img/1738786470emotion.png
Binary file added matplp/analyse/img/1915607114cloud.png
Binary file added matplp/analyse/img/1915607114emotion.png
Binary file added matplp/analyse/img/2247357690cloud.png
Binary file added matplp/analyse/img/2247357690emotion.png
Binary file added matplp/analyse/img/2293557957cloud.png
Binary file added matplp/analyse/img/2293557957emotion.png
Binary file added matplp/analyse/img/237851788cloud.png
Binary file added matplp/analyse/img/237851788emotion.png
Binary file added matplp/analyse/img/237880463cloud.png
Binary file added matplp/analyse/img/237880463emotion.png
Binary file added matplp/analyse/img/2639127616cloud.png
Binary file added matplp/analyse/img/2639127616emotion.png
Binary file added matplp/analyse/img/2750895964cloud.png
Binary file added matplp/analyse/img/2750895964emotion.png
Binary file added matplp/analyse/img/27590845cloud.png
Binary file added matplp/analyse/img/27590845emotion.png
Binary file added matplp/analyse/img/2763633712cloud.png
Binary file added matplp/analyse/img/2763633712emotion.png
Binary file added matplp/analyse/img/302709590cloud.png
Binary file added matplp/analyse/img/302709590emotion.png
Binary file added matplp/analyse/img/306192433cloud.png
Binary file added matplp/analyse/img/306192433emotion.png
Binary file added matplp/analyse/img/314689545cloud.png
Binary file added matplp/analyse/img/314689545emotion.png
Binary file added matplp/analyse/img/3331665905cloud.png
Binary file added matplp/analyse/img/3331665905emotion.png
Binary file added matplp/analyse/img/3390113454cloud.png
Binary file added matplp/analyse/img/3390113454emotion.png
Binary file added matplp/analyse/img/3416655199cloud.png
Binary file added matplp/analyse/img/3416655199emotion.png
Binary file added matplp/analyse/img/403361459cloud.png
Binary file added matplp/analyse/img/403361459emotion.png
Binary file added matplp/analyse/img/404013928cloud.png
Binary file added matplp/analyse/img/404013928emotion.png
Binary file added matplp/analyse/img/540826930cloud.png
Binary file added matplp/analyse/img/540826930emotion.png
Binary file added matplp/analyse/img/542559769cloud.png
Binary file added matplp/analyse/img/542559769emotion.png
Binary file added matplp/analyse/img/572437875cloud.png
Binary file added matplp/analyse/img/572437875emotion.png
Binary file added matplp/analyse/img/578893416cloud.png
Binary file added matplp/analyse/img/578893416emotion.png
Binary file added matplp/analyse/img/674051287cloud.png
Binary file added matplp/analyse/img/674051287emotion.png
Binary file added matplp/analyse/img/694459644cloud.png
Binary file added matplp/analyse/img/694459644emotion.png
Binary file added matplp/analyse/img/729748198cloud.png
Binary file added matplp/analyse/img/729748198emotion.png
Binary file added matplp/analyse/img/749844029cloud.png
Binary file added matplp/analyse/img/749844029emotion.png
Binary file added matplp/analyse/img/752514175cloud.png
Binary file added matplp/analyse/img/752514175emotion.png
Binary file added matplp/analyse/img/758108467cloud.png
Binary file added matplp/analyse/img/758108467emotion.png
Binary file added matplp/analyse/img/772727050cloud.png
Binary file added matplp/analyse/img/772727050emotion.png
Binary file added matplp/analyse/img/786373266cloud.png
Binary file added matplp/analyse/img/786373266emotion.png
Binary file added matplp/analyse/img/804523177cloud.png
Binary file added matplp/analyse/img/804523177emotion.png
Binary file added matplp/analyse/img/821831580cloud.png
Binary file added matplp/analyse/img/821831580emotion.png
Binary file added matplp/analyse/img/870548227cloud.png
Binary file added matplp/analyse/img/870548227emotion.png
Binary file added matplp/analyse/img/871615509cloud.png
Binary file added matplp/analyse/img/871615509emotion.png
Binary file added matplp/analyse/img/879418496cloud.png
Binary file added matplp/analyse/img/879418496emotion.png
Binary file added matplp/analyse/img/892431034cloud.png
Binary file added matplp/analyse/img/892431034emotion.png
Binary file added matplp/analyse/img/984133573cloud.png
Binary file added matplp/analyse/img/984133573emotion.png
Binary file added matplp/analyse/img/996595179cloud.png
Binary file added matplp/analyse/img/996595179emotion.png
Binary file added matplp/analyse/img/[email protected]
Binary file added matplp/analyse/img/[email protected]
Binary file added matplp/analyse/img/[email protected]
Binary file added matplp/analyse/img/[email protected]
Binary file added matplp/jieba/image.zip
Binary file not shown.
Binary file added matplp/jieba/image/0.0兆赫.png
Binary file added matplp/jieba/image/T-34坦克.png
Binary file added matplp/jieba/image/“大”人物.png
Binary file added matplp/jieba/image/一吻定情.png
Binary file added matplp/jieba/image/一条狗的回家路.png
Binary file added matplp/jieba/image/三方国界.png
Binary file added matplp/jieba/image/两大无猜.png
Binary file added matplp/jieba/image/中国合伙人2.png
Binary file added matplp/jieba/image/伊莉莎与玛瑟拉.png
Binary file added matplp/jieba/image/余波.png
Binary file added matplp/jieba/image/偷心女盗.png
Binary file added matplp/jieba/image/冷血追击.png
Binary file added matplp/jieba/image/劫匪.png
Binary file added matplp/jieba/image/反贪风暴4.png
Binary file added matplp/jieba/image/后街女孩.png
Binary file added matplp/jieba/image/哭泣女人的诅咒.png
Binary file added matplp/jieba/image/在乎你.png
Binary file added matplp/jieba/image/地久天长.png
Binary file added matplp/jieba/image/地面之洞.png
Binary file added matplp/jieba/image/复仇者.png
Binary file added matplp/jieba/image/大侦探皮卡丘.png
Binary file added matplp/jieba/image/大黄蜂.png
Binary file added matplp/jieba/image/天气预爆.png
Binary file added matplp/jieba/image/女警.png
Binary file added matplp/jieba/image/如影随心.png
Binary file added matplp/jieba/image/姐姐.png
Binary file added matplp/jieba/image/娑婆诃.png
Binary file added matplp/jieba/image/宠物坟场.png
Binary file added matplp/jieba/image/家和万事惊.png
Binary file added matplp/jieba/image/密室逃生.png
Binary file added matplp/jieba/image/小猪佩奇过大年.png
Binary file added matplp/jieba/image/小飞象.png
Binary file added matplp/jieba/image/巴尔干边界.png
Binary file added matplp/jieba/image/干预.png
Binary file added matplp/jieba/image/廉政风云.png
Binary file added matplp/jieba/image/忌日快乐2.png
Binary file added matplp/jieba/image/恭喜八婆.png
Binary file added matplp/jieba/image/恶霸警察.png
Binary file added matplp/jieba/image/惊天复制.png
Binary file added matplp/jieba/image/惊奇队长.png
Binary file added matplp/jieba/image/我们.png
Binary file added matplp/jieba/image/我的一级兄弟.png
Binary file added matplp/jieba/image/战斗民族养成记.png
Binary file added matplp/jieba/image/拍栗得.png
Binary file added matplp/jieba/image/摇摆狂潮.png
Binary file added matplp/jieba/image/教授与疯子.png
Binary file added matplp/jieba/image/新喜剧之王.png
Binary file added matplp/jieba/image/来电狂响.png
Binary file added matplp/jieba/image/极线杀手.png
Binary file added matplp/jieba/image/极限职业.png
Binary file added matplp/jieba/image/欢乐满人间2.png
Binary file added matplp/jieba/image/武林怪兽.png
Binary file added matplp/jieba/image/毒玫瑰.png
Binary file added matplp/jieba/image/流浪地球.png
Binary file added matplp/jieba/image/海滩流浪汉.png
Binary file added matplp/jieba/image/海王.png
Binary file added matplp/jieba/image/熊出没·原始时代.png
Binary file added matplp/jieba/image/狗眼看人心.png
Binary file added matplp/jieba/image/玛丽女王.png
Binary file added matplp/jieba/image/玻璃先生.png
Binary file added matplp/jieba/image/生日.png
Binary file added matplp/jieba/image/疯狂的外星人.png
Binary file added matplp/jieba/image/白蛇:缘起.png
Binary file added matplp/jieba/image/神奇乐园历险记.png
Binary file added matplp/jieba/image/神探蒲松龄.png
Binary file added matplp/jieba/image/神童.png
Binary file added matplp/jieba/image/老师·好.png
Binary file added matplp/jieba/image/脱欧:无理之战.png
Binary file added matplp/jieba/image/致命之旅.png
Binary file added matplp/jieba/image/蒙上你的眼.png
Binary file added matplp/jieba/image/证人.png
Binary file added matplp/jieba/image/词典.png
Binary file added matplp/jieba/image/谋杀疑案.png
Binary file added matplp/jieba/image/超人王朝.png
Binary file added matplp/jieba/image/遇见女孩的感觉.png
Binary file added matplp/jieba/image/阳台上.png
Binary file added matplp/jieba/image/雷霆沙赞!.png
Binary file added matplp/jieba/image/非分熟女.png
Binary file added matplp/jieba/image/飞驰人生.png
Binary file added matplp/jieba/image/麻药王.png
Binary file added matplp/jieba/image/黑镜:潘达斯奈基.png
Binary file added matplp/jieba/image/龙珠超:布罗利.png
14 changes: 7 additions & 7 deletions matplp/jieba/movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
from wordcloud import WordCloud
import jieba.analyse
import pymysql
db = pymysql.connect(host="localhost", user="root",
db = pymysql.connect(host="biggsai.com", user="root",
password="123456", db="project", port=3306)
# 使用cursor()方法获取操作游标
cur = db.cursor()

def savatofile(name,txt1):
ags = jieba.analyse.extract_tags(txt1, topK=40)#jieba分词关键词提取,40个
text = " ".join(ags)
#backgroud_Image = plt.imread('tt.jpg')//如果需要个性化词云
backgroud_Image = plt.imread('tt.jpg')#如果需要个性化词云
wc = WordCloud(background_color="white",
width=1500, height=1100,
# mask=backgroud_Image, # 设置背景图片
width=900, height=600,
mask=backgroud_Image, # 设置背景图片

min_font_size=30,
#min_font_size=30,
font_path="simhei.ttf",
#max_font_size = 260, # 设置字体最大值
random_state=30, # 设置有多少种随机生成状态,即有多少种配色方案
Expand All @@ -25,7 +25,7 @@ def savatofile(name,txt1):
plt.imshow(my_wordcloud)
plt.axis("off")
#plt.show()#如果展示的话需要一个个点
file='img/'+str(name)+'.png'
file='image/'+str(name)+'.png'

wc.to_file(file) # 保存图片文件
#从数据库提取文本
Expand All @@ -34,7 +34,7 @@ def savatofile(name,txt1):
value=cur.fetchall()
for q in value:
name=q[0]
text=q[1]
text=q[2]
try:
savatofile(name,text)
except Exception as e:
Expand Down

0 comments on commit 0a0dc73

Please sign in to comment.