weibo-crawler icon indicating copy to clipboard operation
weibo-crawler copied to clipboard

直接就ban了?

Open barnett2010 opened this issue 2 years ago • 12 comments

python weibo.py 被ban了

大佬,我一运行就显示这个。

barnett2010 avatar Dec 15 '21 12:12 barnett2010

{ "user_id_list": "user_id_list.txt", "filter": 0, "remove_html_tag": 1, "since_date": "2009-01-01", "start_page": 1, "write_mode": ["csv"], "original_pic_download": 1, "retweet_pic_download": 0, "original_video_download": 0, "retweet_video_download": 0, "download_comment":1, "comment_max_download_count":100, "result_dir_name": 0, "cookie": "your cookie", "mysql_config": { "host": "localhost", "port": 3306, "user": "root", "password": "123456", "charset": "utf8mb4" } }

barnett2010 avatar Dec 15 '21 12:12 barnett2010

加上cookie再看看

dataabc avatar Dec 15 '21 12:12 dataabc

加上cookie,修改get_pages函数里的时间间隔,都被ban了

babepig018 avatar Jan 17 '22 11:01 babepig018

@babepig018 被ban之前成功过吗

dataabc avatar Jan 17 '22 12:01 dataabc

没有

babepig018 avatar Jan 17 '22 13:01 babepig018

@babepig018 会不会之前用过其它微博相关的程序,或者换个目标用户呢,能成功吗

dataabc avatar Jan 17 '22 13:01 dataabc

没用过其他微博程序,直接用的user_id_list.txt,换目标用户也不行

babepig018 avatar Jan 17 '22 15:01 babepig018

@babepig018 换成user_id_list输入试试,我怀疑可能是user_id不正确。

dataabc avatar Jan 17 '22 18:01 dataabc

get_pages

抓某个微博抓完下一个时就不行了 然后就一直被ban了 换useragent不行 换目标用户也不行 前几天正常 换台电脑也不行

utmcontent avatar Jan 21 '22 23:01 utmcontent

@utmcontent 可能是被ban了,减速看看,或者user_id不正确。

dataabc avatar Jan 22 '22 09:01 dataabc

在config.json写用户id可以爬取,但换成外部导入txt就不行,即使我在txt文件只写了一个用户

babepig018 avatar Feb 18 '22 16:02 babepig018

@babepig018 可能是配置文件的user_id_list参数错误。

dataabc avatar Feb 19 '22 05:02 dataabc