gpt4 book ai didi

python - 使用 Python(selenium)自动 9GAG 注释被删除?

转载 作者:行者123 更新时间:2023-12-01 01:49:59 25 4
gpt4 key购买 nike

我编写了一个Python脚本来自动化使用selenium添加评论的过程,每个评论都会自动一个接一个地发布,中间间隔一秒。然而,我在一篇帖子上自动发布的那些评论在一段时间后就消失了,只有一条评论是我手动输入的。 9GAG是如何做到的?有什么办法可以绕过它吗?

最佳答案

如果您引用 9gag 常见问题解答 (https://about.9gag.com/faq/#six-two),您可以看到以下内容:

Comment Failings: I can't see my comments anymore. Why?

This could be for one of two reasons:

  • The auto spam filter identified your comments as spams OR
  • The community/other users downvoted and/or reported your comments

Multiple failings: I can't upload/I can't comment anymore. Why?

It’s very likely your account is suspended or banned because you have violated our 9GAG rules.

至于 9gag 规则 ( https://about.9gag.com/rules ):

No spamming, manipulation and multiple account abuse

Everyone hates spam. Don’t post large amounts of untargeted, unwanted or repetitive content and comments in order to increase views. Creating multiple accounts with overlapping uses or in order to evade the temporary or permanent ban of a separate account is not allowed.

...所以,我想说你是通过评论之间的短暂时间或评论​​的内容被发现的。为了尝试这种可能性,我将制作一个脚本,在评论之间休眠随机时间,并生成随机长度的随机评论:

import random
import time
import string

while True:
random_comment = ' '.join([random.choice(string.printable) for i in range(random.randint(10,100))])
random_time = random.randint(1, 10)
time.sleep(random_time)
upload_comment(random_comment)

关于python - 使用 Python(selenium)自动 9GAG 注释被删除?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50822230/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com