如何取得Google 的 how to pronounce xxx的聲音及影片檔
取得聲音
https://www.google.com/search?q=how to pronounce apple
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
q的get上就是關鍵字
從f12/Network裡面可以找到mp3檔
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
hello_en_gb.1.mp3是正常的
hello_en_gb.2.mp3是慢速的
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
https://ssl.gstatic.com/dictionary/static/pronunciation/2020-02-14/audio/wi/windows_en_gb_1.mp3https://ssl.gstatic.com/dictionary/static/pronunciation/2020-02-14/audio/wi/windows_en_gb_2.mp3
在這api可以直接修改網址上的字,就會產生聲音檔。而這段是從google翻譯打開f12裡的network就可以找到了。
https://translate.google.com.vn/translate_tts?ie=UTF-8&q=老爺不要&tl=en&client=tw-ob
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
圖片解析html
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
大概的思路:
這邊你需要使用爬蟲
直接把你需要的部分擷取下來
會是svg的向量圖片
再看你有沒有需求轉成點陣圖
用同樣方法轉成gif或mp4 就會變成你想要的東西
大概的作法和參考的文件
這部分就需要你去研究爬蟲技巧了
抓tag通常還是比較靠經驗去解析的