Giter Club home page Giter Club logo

Comments (6)

PttCodingMan avatar PttCodingMan commented on May 25, 2024

您好,請問你的程式碼跟爬哪一篇文章?

from pyptt.

lemotw avatar lemotw commented on May 25, 2024

這是我的程式碼 self.bot 是 PTT.API()
然後爬 Gossiping 遇到這樣的狀況

 # Get Newest index for crawler
        new_index = self.bot.get_newest_index(PTT.data_type.index_type.BBS, board)

        # Crawler by index iterative
        while count:
            print(count)
            post = self.bot.get_post(board, post_index=new_index)

            if post.push_number >= push_limit:
                post_list.append(post)
                count = count - 1

from pyptt.

PttCodingMan avatar PttCodingMan commented on May 25, 2024

如果文章沒有 push_number 呢?

from pyptt.

PttCodingMan avatar PttCodingMan commented on May 25, 2024

文章前頭沒有推文數字

from pyptt.

lemotw avatar lemotw commented on May 25, 2024

阿,我以為會回傳 0 是我的問題。

from pyptt.

PttCodingMan avatar PttCodingMan commented on May 25, 2024

沒事 應該是我文件沒有寫清楚

我明天看看怎麼補一下

from pyptt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.