View Single Post
Old 09-28-2010, 09:24 AM   #10
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by TonytheBookworm View Post
something like this maybe? :confused
...
Just not grasping this one yet
Without setting up your recipe and running it, I can't be sure of the details, but yes, that's the basic idea. You found the pcard part of the URL in the main soup and constructed the link (URL) that you needed. You used soup = self.index_to_soup(URL) to grab that page and turn it into a soup. Now you have to extract() the tag_from_newsoup for whatever you need/want.

You don't want the <head>, etc. I haven't looked at that page, so I can't tell you exactly what or how much you'll want in tag_from_newsoup, but you know how to do that.

Once tag_from_newsoup is extracted, you can either soup.insert(wherever, tag_from_newsoup) or use replaceWith. I know you've used both of them previously. You might just use replaceWith on the <iframe> tag.

So you lied when you said "#no clue on this"

You've got most of it, it's just putting it all together (Do I get partial author credit on this - writing all these posts is harder than just writing the recipe )
Starson17 is offline   Reply With Quote