开发者

google chrome extension : how to get data from webpage and save it on user harddrive permanently?

I have this website which I frequently visit to lookup a German language word meanings in English. I want to save the text from each webpage I visit of the site in a json file by highlighting it. How do I go about doing this? Which api of google chrome extension should I refer t开发者_C百科o?

Also will a firefox addon be faster to learn and develop? I have some programming exp in html, JS and CSS.


If you just need to store data between browser restarts then take a look at LocalStorage API. If you actually need to create a file there is a FileSystem API, but it has its limitations and not very easy to use.

Chrome extensions are much easier to learn and create than Firefox.


I would use pure HTML5 web storage.

Its already been answered here:

https://stackoverflow.com/questions/1194784/which-browsers-support-html5-offline-storage

- or take a look for more reference in most HTML5 tutorials:

  • http://diveintohtml5.ep.io/storage.html
  • http://www.webreference.com/authoring/languages/html/HTML5-Client-Side/
  • http://www.w3schools.com/html5/html5_webstorage.asp
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜