Regular Expressions
Hello ladies and gentlemen. School has started this year, and I am on an advanced team(arrived late). We have been given perhaps over 200+ words to define by Monday and instead of doing that, I decided to write a Python script that will allow me to type the words and rip the definitions from http://www.dictionary.com. I noticed that it basically follows this pattern http://dictionary.com/search?q=(word). I wrote a script that gets the definitions, but now I need to be able to get the actual definitions and not the source code. The definitions that I need are located between
<td valign="top">
and
</table>
tags
Here is my script: http://pastebin.com/m2c908524
The source code for an actual page of dictionary.com http://pastebin.com/m161549b2
fashizzlepop wrote: Thats sounds like a really helpful script I would use during school. Can you post the complete source if the code bank dont work? The link is here: http://pastebin.com/f7e56f5a3 and it is in the code bank as well B) I'll be doing some more tweaking throughout the weekend as well so that it can read definitions from files, and be more efficient at removing HTML