|
|
#1 |
|
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Help with Recipe inserting tag
Not sure what I'm doing wrong here but what i'm trying to achieve is this
Header Date <space> article what i'm having trouble with is this portion of my code Code:
for jumbled in soup.find('div', attrs={'valign':'Top'}):
parent_tag = jumbled.parent
new_tag = Tag(soup,'p')
new_tag.insert(0,jumbled)
parent_tag.replaceWith(new_tag)
Spoiler:
|
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing and inserting SD cards | jusmee | Astak EZReader | 19 | 11-20-2009 07:24 PM |
| Inserting a Table of Contents | ghostyjack | Workshop | 4 | 11-13-2009 11:57 AM |
| Inserting Pictures? | MickeyC | Feedback | 6 | 05-20-2009 02:02 PM |
| html2epub and inserting images | roger64 | Calibre | 0 | 05-06-2009 12:31 PM |
| Long waits after inserting a SD Card | mikew | Sony Reader | 4 | 09-30-2008 02:26 PM |