1)
For instance, if you open
http://www.vocabulary.com/dictionary/reiterate
on the right bottom you will find "usage examples".
If you try to save wabpage and than reopen it:
file:///C:/Users/Gintare/Downloads/reiterate%20-%20Dictionary%20Definition%20%20%20Vocabulary.com. htm
the "usage examples" will be displayed.
But if you use:
Expand|Select|Wrap|Line Numbers
- res="http://www.vocabulary.com/dictionary/reiterate"
- resp = urllib.request.urlopen(res)
- html = resp.read()
- soup=BeautifulSoup(html) shtml=BeautifulSoup.prettify(soup) fFI=open('requested_file.html','w',encoding='utf-8')
- fFI.writelines(shtml)
- fFI.close()
How to download full webpage with the section "usage examples" using urllib.request?
2) How to retrieve other examples, which normally are accessible by pressing hyperlink "next". There are more than 40 examples for this word, but hey are displayed only in portions by 4.