search word in google and want to find hits of each word using java program

前端 未结 5 1006
走了就别回头了
走了就别回头了 2021-01-27 11:42

I have 30000 dictionary words. In that I want to to search each word in Google and want to find hits of each word using Java program. Is it possible?

5条回答
  •  青春惊慌失措
    2021-01-27 12:26

    I'd recommend separating your problem into pieces. Get each one working, then marry them together for the solution you want.

    You have a few things going on here:

    1. Downloading text from a URL
    2. Scanning a stream of characters and breaking it up into words
    3. Iterating through a list of words and tallying up the hits from your dictionary

    Computer science is all about taking large problems and decomposing them into smaller ones. I'd recommend that you start learning how to do that now.

提交回复
热议问题