Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
liwanlsl authored and zrmqfdy committed Mar 30, 2019
1 parent 2c7101a commit c8a2832
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 8 deletions.
10 changes: 9 additions & 1 deletion 19100105/liwanlsl/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


第1天
姓名:李树立
所属班级:19100105
Expand Down Expand Up @@ -77,3 +77,11 @@ issue
学习用时:3.5小时
总结收获:知道了微信“机器人”,简单尝试一次。在GIT中,对用法很详细了,只要认真读,都能很快上手的。
遇到的难点和问题:新的工具开始总用的不熟,需要一点点调试。过程中重要的是耐心。


第13天
姓名:李树立
所属班级:19100105
学习用时:5.5小时
总结收获:学习了简单可视化并反馈给分享者。
遇到的难点和问题:反馈过程仍出现些问题,后续需要继续处理。
6 changes: 3 additions & 3 deletions 19100105/liwanlsl/d11_training1 - 副本.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
statString = ''.join(str(i) for i in statList)
print(statString)

sender = input('输入发件人邮箱:' '[email protected]')
password = getpass.getpass('输入发件人邮箱密码:' 'pwfpmmgsajmjbghg')
recipients = input('输入收件人邮箱:' '[email protected]')
sender = input('输入发件人邮箱:')
password = getpass.getpass('输入发件人邮箱密码:')
recipients = input('输入收件人邮箱:')
smtp = 'smtp.qq.com'

yagmail.SMTP(sender,password,smtp).send(recipients,'19100105 liwanlsl',statString)
2 changes: 1 addition & 1 deletion 19100105/liwanlsl/d11_training1.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


# 获取公众号文件

response = requests.get('https://mp.weixin.qq.com/s/pLmuGoc4bZrMNl7MSoWgiA')

# 提取公众号正文
def stats(url):
Expand Down
4 changes: 2 additions & 2 deletions 19100105/liwanlsl/d12_training2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import d11_training1
bot = Bot()

my_friend = bot.friends().search('')[0]
my_friend.send('分享')
my_friend = bot.friends().search('wan')[0]
my_friend.send('发一个链接')

@bot.register(my_friend)

Expand Down
56 changes: 56 additions & 0 deletions 19100105/liwanlsl/d13_training3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

import matplotlib.pyplot as plt
import numpy as np

plt.rcdefaults()
fig,ax = plt.subplots()

def matplt (Xname,Ynum):
y_pop = range(len(Ynum))

ax.bar(y_pop, Ynum,tick_label=Xname,align='center',
color='green', ecolor='black')
ax.set_ylabel('CIPIN')
ax.set_xlabel('CIHUI')
ax.set_title('WEN ZHANG FAN KUI:')

plt.savefig('C:/Users/admin/frcy.png')
plt.show()

from wxpy import *

bot = Bot(cache_path=True)

my_friend = bot.friends().search('李')[0]

@bot.register(my_friend)

def get_msg(msg):
if msg.type == 'Sharing':
target = msg.url

import requests
import yagmail
import getpass
from pyquery import PyQuery
from mymodule import d11_stats_word

response = requests.get('target')

document = PyQuery (response.text)
content = document ('#js_content').text()

statList = d11_stats_word.stats_text(content)
content1 = ''.join(str(i) for i in statList)

cipin_list=[]
cihui_list=[]
for i in content1:
cihui_list.append(i[0])
cipin_list.append(i[1])

matplt(cihui_list,cipin_list)
my_friend.send_image('C:/Users/admin/frcy.png')


embed()
2 changes: 1 addition & 1 deletion 19100105/liwanlsl/mymodule/d11_stats_word.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def stats_text_cn(cn) :
else :
pass

return collections.Counter(SHList).most_common(100)
return collections.Counter(SHList).most_common(20)

def stats_text(text):
''' 合并英汉词频统计 '''
Expand Down

0 comments on commit c8a2832

Please sign in to comment.