Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3593970
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:38:53+00:00 2026-05-18T19:38:53+00:00

I need to extract this data and display a simple graph out of it.

  • 0

I need to extract this data and display a simple graph out of it.

Something like Equity Share Capital -> array (30.36, 17, 17 .... etc) would help.

<html:tr>
<html:td>Equity Share Capital</html:td>
<html:td class="numericalColumn">30.36</html:td>
<html:td class="numericalColumn">17.17</html:td>
<html:td class="numericalColumn">15.22</html:td>
<html:td class="numericalColumn">9.82</html:td>
<html:td class="numericalColumn">9.82</html:td>
</html:tr>

How do I go about this task in PHP or Python?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T19:38:54+00:00Added an answer on May 18, 2026 at 7:38 pm

    A good place to start looking would be the python module BeautifulSoup which extracts the text and places it into a table.

    Assuming you’ve loaded the data into a variable called raw:

    from BeautifulSoup import BeautifulSoup
    soup = BeautifulSoup(raw)
    
    for x in soup.findAll("html:td"):
       if x.string == "Equity share capital":
           VALS = [y.string for y in x.parent.findAll() if y.has_key("class")]
    
    print VALS
    

    This gives:

    [u'30.36', u'17.17', u'15.22', u'9.82', u'9.82']
    

    Which you’ll note is a list of unicode strings, make sure to convert them to whatever type you desire before processing.

    There are many ways to do this via BeautifulSoup. The nice thing I’ve found however is the quick hack is often good enough (TM) to get the job done!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to extract financial price data from a binary file. This price data
I need to extract data from a .mpp file on the network and combine
I need to extract and see the data in FileMaker Pro 5.5. Is there
I need extract data from a string. Heres an example: Mozilla/5.0 (Macintosh; U; PPC
What's the best way to parse this data? Should I use regex or something
I'm accessing some website and I need to extract some data. To be more
I need to extract records from a table, copy the data to a second
I need to extract a sizeable amount of data (> 1000 pages) from a
I have a thunderbird email data file from which I need to extract individual
I need display data from a web page in a ListView, for example if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.