Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Getting info from a file
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?

count of what? records, characters, or ?
#3 is a great resource for interactively testing regexes out, to try to find one that works.

If you could share a snippet of what you're trying to extract, maybe we can help. But also, if it's an html page, you could try BeautifulSoup, and use element/css selectors to find the content node.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  get hotel info from hotelscombined nikana 5 348 Apr-23-2019, 08:15 AM
Last Post: buran
  Info web login antonio04 18 2,038 Nov-29-2018, 10:09 AM
Last Post: antonio04
  get extensive package info with pip metulburr 10 2,989 Jan-15-2018, 12:39 AM
Last Post: snippsat

Forum Jump:

Users browsing this thread: 1 Guest(s)