How to write a crawler?

后端 未结 10 1871
感情败类
感情败类 2020-12-02 03:47

I have had thoughts of trying to write a simple crawler that might crawl and produce a list of its findings for our NPO\'s websites and content.

Does anybody have an

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 04:24

    You could make a list of words and make a thread for each word searched at google.
    Then each thread will create a new thread for each link it find in the page.
    Each thread should write what it finds in a database. When each thread finishes reading the page, it terminates.
    And there you have a very big database of links in your database.

提交回复
热议问题