Quote:
Originally Posted by Starson17
BTW, I wrote an explosm recipe, but IIRC, I never posted it. Someone wanted it, but never responded to a couple questions I posted (hope it wasn't you). It didn't do any rotation, but it did clean up most of what you need cleaned. If you want it, I'll dig it up later tonight or tomorrow and post it.
|
Yeah unfortunately that was me (although google searching the forum shows that there were three other people who requested the explosm feed as well, but i dont think you are referring to them). I apologized for overlooking your post in a previous post, dont know how I missed it. Thanks for the support, I cant claim any credit for anything, the recipe code is yours Starson (you posted it two posts after asking the questions), all I did was insert the rotate code from another poster and it happened to work. Like I said, I really have never dealt with code before so everything I do seems to take hours and gets me nowhere.
So I did what you said and I was able to get the file and look at the images and look at the code in notepad++. Problem is that it sequentially labels its images on the site (ie sometimes the actual cartoon is img3, other times img8, etc). So I dont really know how I would go about cleaning it up. Also, how do you remove the table, I tried simply taking it out, but it broke the recipe. I tried using something like
Code:
remove_tags =[
dict(name='div', attrs={'id':['logobottom']})
# dict(name='span', attrs={'id':'logobottom'})
# dict(name='table')
]
right after the keep_only_tags command. I've been trying to figure out how the command works, but it has been rough. If you could look for the recipe you already made that would be great. It would sure be nice to see how the code looks when it works so I try to figure out how you did it. Thanks so much.