This is what I do in my program:
But when it run to 84th article, I got capcha to input. The number of articles is about 2000.
How to get the google rank without getting blocked or capcha?
Any comment is appriciated. Thank you!
Take a look here: Is it ok to scrape data from Google results?
You should always do everything you can to NOT get into a captcha, no matter what site you scrape.
Captcha/block means you have been detected and that causes issues.
The site owner does not like it for sure, causing administrative work etc.
Check the answer of mine I linked, also the linked sites there. You can learn a lot about how to scrape Google (and how not)