How to scrape specific part of online english dictionary?

感情迁移 提交于 2019-12-13 03:37:56

问题


Hello experts and friends from all over the world. I'm a non-english speaker who's learning english recently, and from last week I have been making huge english vocabulary list which contains phonetic alphabet, meaning etc. Problem is some of word's phonetic alphabet were missing, due to those are non-exist on few of online dictionaries I have checked. But after struggling for a while, I found oxford online dictionary having those phonetic alphabet I couldn't found out before. So, here's what I want to do. I'd like to make automated excel word list that searches and copy phonetic alphabet from oxford dictionary. It is because huge amount of words range, I cannot copy and paste all of them one by one manually. (actually I still have over 7k words to fill in its phonetic alphabet)

https://www.oxfordlearnersdictionaries.com/definition/english/

There are British accent and American accent you can find. I only want copy american phonetic alphabet from oxford dictionary. https://www.oxfordlearnersdictionaries.com/definition/english/absolutely?q=absolutely

Why I want phonetic alphabet from oxford dictionary first? It is because those fonts are clear and easy to read, better than other english dictionaries online.

For word 'absolutely', I found what I want like below; ( æbsəluːtli )is my goal to get.

<span class="red">NAmE</span>
<span class="phon" eid="absolutely_phon_10" dpsid="ubd078dc7731dc33e.684f08cc.1604f657bf7.-7536">
<span class="name">NAmE</span><span class="separator">/</span>
<span class="wrap">/</span>ˈæbsəluːtli<span class="wrap">/</span><span class="separator">/</span></span>

There is another type, like word 'declaring' is -ing form. https://www.oxfordlearnersdictionaries.com/definition/english/declare#declare_inflg_2 It is hiding under the drop down menu.

<span class="heading">Verb Forms</span>
<span class="phon" eid="declare_phon_46" dpsid="u4bd66fe39eed907e.-606459e9.16674bee79e.273c">
<span class="name">NAmE</span>
<span class="separator">/</span><span class="wrap">/</span>dɪˈklerɪŋ<span class="wrap">/</span>
<span class="separator">/</span></span>

I don't have enough knowledge to get what I wanted, I still have long way to go. All of sudden I feel crawling or scraping data is interesting because I could fill out my vocabulary list on excel.

Could anyone give some idea how to finish my excel word list up successfully?

Here's oxford3000 list for test https://www.oxfordlearnersdictionaries.com/wordlist/english/oxford3000/

thanks

来源:https://stackoverflow.com/questions/59123054/how-to-scrape-specific-part-of-online-english-dictionary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!