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
#10
It appears to have run
you are getting none from:
print(res.raise_for_status())
after line 18, add:
for link in linkElems:
    print(f'link: {link}')
so you can see if the soup.select (which is css select by the way) is finding anything

also, you need to supply a value to the command line e.g.
python -m myprog.py searchvalue
Reply


Messages In This Thread
RE: Project: “I’m Feeling Lucky” Google Search - by Larz60+ - Jul-22-2018, 11:28 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,294 Jun-15-2020, 12:34 PM
Last Post: tsurubaso
  "I'm Feeling Lucky" script problem (again) tab_lo_lo 7 7,865 Jul-23-2019, 11:26 PM
Last Post: snippsat
  How to use BeautifulSoup to parse google search results DevinGP 16 21,499 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