Python Forum
Project: “I’m Feeling Lucky” Google Search
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Project: “I’m Feeling Lucky” Google Search
#6
that's good, that means you can use:
pip install BeautifulSoup4

I see it's already installed.
Then make the following changes on your code (by line number)
In reverse order (so line numbers remain constant until done)
line 15
# from:
    soup = bs4.BeautifulSoup(res.text, "html.parser")
# to:
    soup = BeautifulSoup(res.text, "html.parser")
line 5
# From:
import bs4
# to:
from bs4 import BeautifulSoup
Reply


Messages In This Thread
RE: Project: “I’m Feeling Lucky” Google Search - by Larz60+ - Jul-22-2018, 11:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  With Selenium create a google Search list in Incognito mode withe specific location, tsurubaso 3 3,318 Jun-15-2020, 12:34 PM
Last Post: tsurubaso
  "I'm Feeling Lucky" script problem (again) tab_lo_lo 7 7,880 Jul-23-2019, 11:26 PM
Last Post: snippsat
  How to use BeautifulSoup to parse google search results DevinGP 16 21,546 Dec-22-2017, 10:23 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020