使用scrapy采集社交媒体的公开信息
yellowDog
2024-09-19 62b2ef7f7e1ef083b294293fe84c789c0aedc4a2
refactor:增加小红书对注销用户的处理
1 files modified
2 ■■■ changed files
aijuke_spider/pipelines.py 2 ●●● patch | view | raw | blame | history
aijuke_spider/pipelines.py
@@ -509,7 +509,7 @@
        )
        try:
            if self.session.query(GrabUser).filter(GrabUser.sec_id == grab_user.sec_id).first():
            if self.session.query(GrabUser).filter(GrabUser.sec_id == grab_user.sec_id).first()or grab_user.nickname=='用户已注销':
                self.profile_num += 1
                self.change_status(comment_got=comment_got)
                return item