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 9257769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:14:13+00:00 2026-06-18T12:14:13+00:00

HTML structure I am working on is: <tr showhide=show style=display: table-row; > <td class=monthlyCost>£18<span>.50</span></td>

  • 0

HTML structure I am working on is:

<tr showhide="show" style="display: table-row; ">
            <td class="monthlyCost">£18<span>.50</span></td>
                      <td class="phoneCost">£299.99</td>
                      <td><span class="lowLight">24 Months</span></td>
            <td>200</td>
            <td>Unlimited</td>
            <td class="dataAllowance">100MB</td>
            <td class="extras">

I am using following Python code to extract information:

minutes       = tariff_link_soup.findAll('td', {"class": False})
texts         = tariff_link_soup.findAll('td', {"class": False})

Problem: I want information mentioned in these two td (<td>200</td> & <td>Unlimited</td>) tags in 2 different columns minutes & texts. But my method which defines class as false, finds 3 arguments 24 Months , 200 & Unlimitedcontinually.

I understand the problem but not able to devise a solution for it. There are 2 parts to it, first I don’t want data in lowlight class , second I want data in next two td tags to be in 2 different columns, I can the separate the two in 2 columns even if I can get them together like 200 Unlimited

Please help me in resolving this issue.

  • 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-06-18T12:14:14+00:00Added an answer on June 18, 2026 at 12:14 pm

    If you’re using BeautifulSoup 3, the correct call would be:

    .findAll('td', {'class': None})
    

    That gives me:

    >>> results = s.findAll('td', {'class': None})
    >>> results
    [<td><span class="lowLight">24 Months</span></td>, <td>200</td>, <td>Unlimited</td>]
    

    As you’re calling this twice, you will get the same data in both minutes and texts. I assume your table’s columns are not going to change, so you’d have to use indexing:

    >>> minutes = results[1]
    >>> texts = results[2]
    >>> minutes, texts
    (<td>200</td>, <td>Unlimited</td>)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a HTML structure: <div class=mydiv>xx <span>test1</span> <span>test2</span> <div class=inerdiv> <span>inner span</span> </div>
I have the following html structure. <ul> <script id=agendaTmpl type=text/x-jquery-tmpl> <li class=arrow boundElement style=height:40px;
I am working on select box and using jquery. HTML structure: <form method= action=
Html Structure <a> <span> <!-- Span has width & height --> <img> </span> <span>
My HTML structure looks like this <div class=container> <div class=image><img /></div> <div class=title_body> <div
i have this following html structure usilg ul and li. <ul class=treeview id=productTree> <li
I have this HTML structure <div class=buttons> <button data-icon=ui-icon-disk class=save>Save1</button> <button data-icon=ui-icon-check class=ok>OK1</button> <button
I have the following html structure (which is generated and I can't change): <table
I have this HTML structure (excerpt): <td> <select id=test1 class=pub_chooser> <option value=99>All Publications</option> <option
I have a simple HTML structure ( jsfiddle ): <li> <div class=buttons> <a href=done><img

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.