Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Removing Text
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Osyrys Edmister  
View profile  
 More options Oct 15 2012, 3:18 pm
From: Osyrys Edmister <osyrys.edmis...@onereceipt.me>
Date: Mon, 15 Oct 2012 12:18:54 -0700 (PDT)
Local: Mon, Oct 15 2012 3:18 pm
Subject: Removing Text

I've searched through the group and can not find what I'm looking for.
 Here's my issue.

We are using Beautifulsoup to parse emails, I get a field with the value

<td class="s2">Portland (2010)<br /> <span style="color:#999999;">Available
to Ship: NOW</span></td>

I need to remove the "<span style="color:#999999;">Available to Ship:
NOW</span></td>" part...

I've used .split('Available')[0], but this is not how the powers that be
here would like it done since the text in that field can vary.
Is there a way to search the text string and remove the span tag all
together?

Thanks in advance for any suggestions and assistance.

Osyrys


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron DeVore  
View profile  
 More options Oct 16 2012, 3:18 pm
From: Aaron DeVore <aaron.dev...@gmail.com>
Date: Tue, 16 Oct 2012 12:18:06 -0700
Local: Tues, Oct 16 2012 3:18 pm
Subject: Re: Removing Text
Perhaps you can extract the span node?

td_tag.find('span').extract()

On Mon, Oct 15, 2012 at 12:18 PM, Osyrys Edmister


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »