Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

还是主题贴获取问题 #243

Open
Misaka19327 opened this issue Dec 6, 2024 · 1 comment
Open

还是主题贴获取问题 #243

Misaka19327 opened this issue Dec 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Misaka19327
Copy link

我不确定这个问题之前有没有提过,如果有实在抱歉orz

代码如下,还是获取所有的主题贴想要筛选。

    for page in range(start_page, end_page):
        threads = await client.get_threads(target_forum.fid, pn=page, rn=100)
        print(f"Fetched page {page}, {len(threads.objs)} threads")

        for thread in threads.objs:
            t = {
                "tid": thread.tid,
                ...
            }

            results.append(t)

之前看着数量差不多我就没太注意,不过今天我想要筛选出万赞以上帖的时候发现,至少有3个我确实知道的万赞以上的主题贴没有获取到。我又检查了一下之前获取过的数据,发现每次获取的数据再筛选后得到的,字面意义上的有得有失。可能这一次缺的是某一主题帖,下一次再获取筛选后这个缺的就补上了,但又缺了别的主题贴。我想知道大概的原因?

@lumina37 lumina37 added the bug Something isn't working label Dec 9, 2024
@lumina37
Copy link
Owner

lumina37 commented Dec 9, 2024

等我回国了看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants