Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting info from a file
#1
I did a google search and saved it in a file, "page.html".

I am trying to grab the result count into a variable.

My attempts to use regular expressions all ended in total frustration and didn't work. I looked for "About*results" because the number is between those words. It didn't find the line at all. Even if it did, I'd still be struggling with getting the number out of the line.

Any help for a very poor programmer?

Ken
Reply


Messages In This Thread
Getting info from a file - by kwckwckwc - Feb-12-2019, 01:59 PM
RE: Getting info from a file - by Larz60+ - Feb-12-2019, 05:14 PM
RE: Getting info from a file - by nilamo - Feb-12-2019, 06:38 PM

Forum Jump:

User Panel Messages

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