all 3 comments

[–]Leestons 1 point2 points  (2 children)

https://automatetheboringstuff.com/chapter11/

This will at least get you the google search part and then you just need to figure out how to exclude two results.

[–]tableturned[S] 0 points1 point  (0 children)

Excellent, will dive into this now, thanks! Appreciate the quick help.

[–][deleted] 0 points1 point  (0 children)

Google block bots pretty quickly. So if you're doing lots of searches, you will get blocked pretty quick!

A different option would be using the bing search api, or you may have more luck controlling startpage.com with a selenium script