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 the info from 2 different rows in the same column using a one key derwinduran 0 125 Jan-10-2019, 08:53 PM
Last Post: derwinduran
  Bot to get info from one page and save to db sena 0 205 Nov-09-2018, 02:43 PM
Last Post: sena
  How do I get the info for a cached property? arnavb 3 430 Sep-02-2018, 02:26 PM
Last Post: arnavb
  Extract Info from file to rename file twent2t 4 353 Aug-05-2018, 06:51 PM
Last Post: wavic
  get specific items from result return info mamoman 3 373 Jul-22-2018, 12:46 PM
Last Post: mamoman
  version/compile info Skaperen 11 936 May-20-2018, 01:16 AM
Last Post: Skaperen
  Variable info from a FOR loop Steffenwolt 4 571 Feb-11-2018, 02:34 PM
Last Post: DeaD_EyE
  Picking A number of items from a dict and getting there info TFish 2 487 Jan-17-2018, 08:54 PM
Last Post: Larz60+
  Copy info of 2 files with share information AngelRuizM 1 727 Aug-14-2017, 07:31 PM
Last Post: buran
  Find kerning info from font 1marc1 2 1,306 May-30-2017, 11:12 PM
Last Post: 1marc1

Forum Jump:

Users browsing this thread: 1 Guest(s)