I want to do a basic query on yahoo search engine from a python script using Beautiful Soup and urllib. I’ve done the same for Google which was rather easy but Yahoo is proving to be a bit difficult. A minimal example script of a query to yahoo search engine would help. Thank you!
Share
first, avoid
urllib– use requests instead, it’s a much saner interface.Then, all links in the returned page have the class
yschttland an ID following the schemelink-1,link-2and so on. That you can use with beautiful soup:Gives us
and more.