全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: dalaoa

[疑问] 脚本来了,通过微信订阅论坛新帖

  [复制链接]
发表于 2019-5-9 21:09:55 | 显示全部楼层
35954514 发表于 2019-5-9 20:22
pip install beautifulsoup4

大佬,牛逼克拉斯
Beryl 该用户已被删除
发表于 2019-5-9 22:17:26 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2019-5-9 22:22:34 | 显示全部楼层
[root@DarkgreyMaroon-VM ~]# python toWechat.py
Traceback (most recent call last):
  File "toWechat.py", line 3, in <module>
    import requests
ImportError: No module named requests
[root@DarkgreyMaroon-VM ~]#
发表于 2019-5-9 22:24:43 | 显示全部楼层
YIMSHING 发表于 2019-5-9 22:22
[root@DarkgreyMaroon-VM ~]# python toWechat.py
Traceback (most recent call last):
  File "toWechat.p ...

pip install request
 楼主| 发表于 2019-5-9 22:24:45 | 显示全部楼层
YIMSHING 发表于 2019-5-9 22:22
[root@DarkgreyMaroon-VM ~]# python toWechat.py
Traceback (most recent call last):
  File "toWechat.p ...

pip install requests
发表于 2019-5-9 22:25:40 | 显示全部楼层
dalaoa 发表于 2019-5-9 22:24
pip install requests

厉害 可以了
 楼主| 发表于 2019-5-10 17:20:28 | 显示全部楼层

感谢支持
发表于 2019-5-16 15:45:24 | 显示全部楼层
不错
我尝试改成了别的discuz论坛的Url
可是却提示这个

monitor is runing ,please wait for a monent
Traceback (most recent call last):
  File "toWechat2.py", line 41, in <module>
    firstArr = getnewesttitle()
  File "toWechat2.py", line 28, in getnewesttitle
    resultArr = [newest.parent.text,post_url]
AttributeError: 'NoneType' object has no attribute 'parent'

 楼主| 发表于 2019-5-16 17:08:00 | 显示全部楼层
themyth 发表于 2019-5-16 15:45
不错
我尝试改成了别的discuz论坛的Url
可是却提示这个

地址发出来 我看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-26 16:04 , Processed in 0.059469 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表