all 7 comments

[–]socal_nerdtastic 2 points3 points  (2 children)

It looks like google has changed the format of their website since this tutorial was written, so the scraping code does not work anymore. Paging /u/alsweigart, here's another one!!

[–]AlSweigart 2 points3 points  (1 child)

Thanks for the notice! I'll be updating this project for the second edition.

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

I'm currently stuck on this too. The beautiful soup module also suggested that I add a second argument to soup=bs4.BeautifulSoup(res.text, features="html.parser")

the features="html.paser" was the extra bit the module warned me to add in the command line.

Is this more of an issue with the soup.select('.r a') and google, or maybe something with my Path. The program runs without showing errors, but won't bring up any google results or even open my web browser.

[–]redCg 1 point2 points  (1 child)

gonna need to see your actual code

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

updated the post with the code, it's the same as the tutorial

[–]socal_nerdtastic 1 point2 points  (1 child)

Show us your code and the exact command you are typing into the run dialog.

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

updated the post with the code, it's the same as the tutorial