Note that there are some explanatory texts on larger screens.

plurals
  1. POWriting a script for fetching the specific part of a web page in a loop for offline use
    text
    copied!<p>I have a specific use. I am preparing for GRE. Everytime a new word comes, I look it up at www.mnemonicdictionary.com, for its meanings and mnemonics. I want to write a script in python preferably ( or if someone could provide me a pointer to an already existing thing as I dont know python much but I am learning now) which takes a list of words from a text file, and looks it up at this site, and just fetch relevant portion (meaning and mnemonics) and store it another text file for offline use. Is it possible to do so ?? I tried to look up the source of these pages also. But along with html tags, they also have some ajax functions. Could someone provide me a complete way how to go about this ??</p> <p>Example: for word impecunious:</p> <p>the related html source is like this </p> <pre><code>&lt;ul class='wordnet'&gt;&lt;li&gt;&lt;p&gt;(adj.)&amp;nbsp;not having enough money to pay for necessities&lt;/p&gt;&lt;u&gt;synonyms&lt;/u&gt; : &lt;a href='http://www.mnemonicdictionary.com/word/hard up' onclick="ajaxSearch('hard up','click'); return false;"&gt;hard up&lt;/a&gt; , &lt;a href='http://www.mnemonicdictionary.com/word/in straitened circumstances' onclick="ajaxSearch('in straitened circumstances','click'); return false;"&gt;in straitened circumstances&lt;/a&gt; , &lt;a href='http://www.mnemonicdictionary.com/word/penniless' onclick="ajaxSearch('penniless','click'); return false;"&gt;penniless&lt;/a&gt; , &lt;a href='http://www.mnemonicdictionary.com/word/penurious' onclick="ajaxSearch('penurious','click'); return false;"&gt;penurious&lt;/a&gt; , &lt;a href='http://www.mnemonicdictionary.com/word/pinched' onclick="ajaxSearch('pinched','click'); return false;"&gt;pinched&lt;/a&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; </code></pre> <p>but the web page renders like this: </p> <p><strong>•(adj.) not having enough money to pay for necessities synonyms : hard up , in straitened circumstances , penniless , penurious , pinched</strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload